Class AguiToolCall

java.lang.Object
io.agentscope.core.agui.model.AguiToolCall

public class AguiToolCall extends Object
Represents a tool call in the AG-UI protocol.

Tool calls are used in assistant messages to indicate that the agent wants to invoke a tool. They contain an ID, type, and function details.

  • Constructor Details

    • AguiToolCall

      public AguiToolCall(String id, String type, AguiFunctionCall function)
      Creates a new AguiToolCall.
      Parameters:
      id - The unique tool call ID
      type - The tool call type (typically "function")
      function - The function call details
    • AguiToolCall

      public AguiToolCall(String id, AguiFunctionCall function)
      Creates a new AguiToolCall with type "function".
      Parameters:
      id - The unique tool call ID
      function - The function call details
  • Method Details

    • getId

      public String getId()
      Get the tool call ID.
      Returns:
      The tool call ID
    • getType

      public String getType()
      Get the tool call type.
      Returns:
      The type (typically "function")
    • getFunction

      public AguiFunctionCall getFunction()
      Get the function call details.
      Returns:
      The function call
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object