Class AgentToolNode
java.lang.Object
com.alibaba.cloud.ai.graph.agent.node.AgentToolNode
- All Implemented Interfaces:
NodeActionWithConfig
Node that executes tool calls from assistant messages.
Supports both sequential and parallel tool execution. When parallel execution is enabled, multiple tools can run concurrently up to the configured limit.
Async tools implementing AsyncToolCallback are automatically detected and
executed asynchronously with proper timeout handling.
- Since:
- 1.0.0
- Author:
- disaster
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(OverAllState state, RunnableConfig config) static AgentToolNode.Builderbuilder()getName()List<org.springframework.ai.tool.ToolCallback>voidsetToolCallbacks(List<org.springframework.ai.tool.ToolCallback> toolCallbacks) voidsetToolInterceptors(List<ToolInterceptor> toolInterceptors)
-
Constructor Details
-
AgentToolNode
-
-
Method Details
-
setToolCallbacks
-
setToolInterceptors
-
getToolCallbacks
-
apply
- Specified by:
applyin interfaceNodeActionWithConfig- Throws:
Exception
-
getName
-
builder
-