类 ToolSchema
java.lang.Object
io.agentscope.core.model.ToolSchema
Immutable tool schema definition.
Describes a tool's interface using JSON Schema for parameters.
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明static ToolSchema.Builderbuilder()Creates a new builder for ToolSchema.Gets the tool description.getName()Gets the tool name.Gets the optional tool output schema as a JSON Schema.Gets the tool parameters as a JSON Schema.Gets the strict mode flag for schema validation.
-
方法详细资料
-
getName
Gets the tool name.- 返回:
- the tool name
-
getDescription
Gets the tool description.- 返回:
- the tool description
-
getParameters
Gets the tool parameters as a JSON Schema.- 返回:
- an unmodifiable map containing the parameter schema
-
getOutputSchema
Gets the optional tool output schema as a JSON Schema.- 返回:
- an unmodifiable map containing the output schema, or null if unspecified
-
getStrict
Gets the strict mode flag for schema validation.- 返回:
- true if strict mode is enabled, false otherwise, or null if not specified
-
builder
Creates a new builder for ToolSchema.- 返回:
- a new Builder instance
-