Package io.agentscope.core.agui.model
Class AguiTool
java.lang.Object
io.agentscope.core.agui.model.AguiTool
Represents a tool definition in the AG-UI protocol.
Tools are functions that the agent can call to perform actions or retrieve information. This class defines the tool's interface including its name, description, and parameter schema.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AguiTool
Creates a new AguiTool.- Parameters:
name- The tool namedescription- The tool descriptionparameters- The parameters JSON Schema
-
-
Method Details
-
getName
Get the tool name.- Returns:
- The tool name
-
getDescription
Get the tool description.- Returns:
- The tool description
-
getParameters
Get the parameters JSON Schema.- Returns:
- The parameters schema as an immutable map
-
toString
-
equals
-
hashCode
public int hashCode()
-