类 ToolSchema.Builder
java.lang.Object
io.agentscope.core.model.ToolSchema.Builder
- 封闭类:
ToolSchema
Builder for creating ToolSchema instances.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()Builds a new ToolSchema instance with the set values.description(String description) Sets the tool description.Sets the tool name.outputSchema(Map<String, Object> outputSchema) Sets the optional tool output schema as a JSON Schema.parameters(Map<String, Object> parameters) Sets the tool parameters as a JSON Schema.Sets the strict mode for schema validation.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
name
Sets the tool name.- 参数:
name- the tool name- 返回:
- this builder instance
-
description
Sets the tool description.- 参数:
description- the tool description- 返回:
- this builder instance
-
parameters
Sets the tool parameters as a JSON Schema.- 参数:
parameters- the parameter schema- 返回:
- this builder instance
-
outputSchema
Sets the optional tool output schema as a JSON Schema.- 参数:
outputSchema- the output schema- 返回:
- this builder instance
-
strict
Sets the strict mode for schema validation.- 参数:
strict- whether to enable strict mode- 返回:
- this builder instance
-
build
Builds a new ToolSchema instance with the set values.- 返回:
- a new ToolSchema instance
-