Class ToolCallRequest
java.lang.Object
com.alibaba.cloud.ai.graph.agent.interceptor.ToolCallRequest
Request object for tool calls.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBackward-compatible constructor.ToolCallRequest(String toolName, String arguments, String toolCallId, Map<String, Object> context, ToolCallExecutionContext executionContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolCallRequest.Builderbuilder()static ToolCallRequest.Builderbuilder(ToolCallRequest request) static ToolCallRequestfrom(org.springframework.ai.chat.messages.AssistantMessage.ToolCall toolCall) Creates a ToolCallRequest from an AssistantMessage.ToolCall.
-
Constructor Details
-
Method Details
-
builder
-
from
public static ToolCallRequest from(org.springframework.ai.chat.messages.AssistantMessage.ToolCall toolCall) Creates a ToolCallRequest from an AssistantMessage.ToolCall.- Parameters:
toolCall- the tool call from the assistant message- Returns:
- a new ToolCallRequest with empty context
-
builder
-
getToolName
-
getArguments
-
getToolCallId
-
getContext
-
getExecutionContext
-