Package io.agentscope.core.agui.model
Class AguiToolCall
java.lang.Object
io.agentscope.core.agui.model.AguiToolCall
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 Summary
ConstructorsConstructorDescriptionAguiToolCall(String id, AguiFunctionCall function) Creates a new AguiToolCall with type "function".AguiToolCall(String id, String type, AguiFunctionCall function) Creates a new AguiToolCall. -
Method Summary
-
Constructor Details
-
AguiToolCall
Creates a new AguiToolCall.- Parameters:
id- The unique tool call IDtype- The tool call type (typically "function")function- The function call details
-
AguiToolCall
Creates a new AguiToolCall with type "function".- Parameters:
id- The unique tool call IDfunction- The function call details
-
-
Method Details
-
getId
Get the tool call ID.- Returns:
- The tool call ID
-
getType
Get the tool call type.- Returns:
- The type (typically "function")
-
getFunction
Get the function call details.- Returns:
- The function call
-
toString
-
equals
-
hashCode
public int hashCode()
-