Package com.github.copilot.sdk.events
Class AssistantMessageEvent.AssistantMessageData.ToolRequest
java.lang.Object
com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData.ToolRequest
- Enclosing class:
- AssistantMessageEvent.AssistantMessageData
Represents a request from the assistant to invoke a tool.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the arguments to pass to the tool.getName()Gets the name of the tool to invoke.Gets the unique tool call identifier.voidsetArguments(Object arguments) Sets the tool arguments.voidSets the tool name.voidsetToolCallId(String toolCallId) Sets the tool call identifier.
-
Constructor Details
-
ToolRequest
public ToolRequest()
-
-
Method Details
-
getToolCallId
Gets the unique tool call identifier.- Returns:
- the tool call ID
-
setToolCallId
Sets the tool call identifier.- Parameters:
toolCallId- the tool call ID
-
getName
Gets the name of the tool to invoke.- Returns:
- the tool name
-
setName
Sets the tool name.- Parameters:
name- the tool name
-
getArguments
Gets the arguments to pass to the tool.- Returns:
- the tool arguments (typically a Map or JsonNode)
-
setArguments
Sets the tool arguments.- Parameters:
arguments- the tool arguments
-