Class AssistantMessageEvent.AssistantMessageData.ToolRequest

java.lang.Object
com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData.ToolRequest
Enclosing class:
AssistantMessageEvent.AssistantMessageData

public static class AssistantMessageEvent.AssistantMessageData.ToolRequest extends Object
Represents a request from the assistant to invoke a tool.
  • Constructor Details

    • ToolRequest

      public ToolRequest()
  • Method Details

    • getToolCallId

      public String getToolCallId()
      Gets the unique tool call identifier.
      Returns:
      the tool call ID
    • setToolCallId

      public void setToolCallId(String toolCallId)
      Sets the tool call identifier.
      Parameters:
      toolCallId - the tool call ID
    • getName

      public String getName()
      Gets the name of the tool to invoke.
      Returns:
      the tool name
    • setName

      public void setName(String name)
      Sets the tool name.
      Parameters:
      name - the tool name
    • getArguments

      public Object getArguments()
      Gets the arguments to pass to the tool.
      Returns:
      the tool arguments (typically a Map or JsonNode)
    • setArguments

      public void setArguments(Object arguments)
      Sets the tool arguments.
      Parameters:
      arguments - the tool arguments