类 ToolSchema.Builder

java.lang.Object
io.agentscope.core.model.ToolSchema.Builder
封闭类:
ToolSchema

public static class ToolSchema.Builder extends Object
Builder for creating ToolSchema instances.
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • name

      public ToolSchema.Builder name(String name)
      Sets the tool name.
      参数:
      name - the tool name
      返回:
      this builder instance
    • description

      public ToolSchema.Builder description(String description)
      Sets the tool description.
      参数:
      description - the tool description
      返回:
      this builder instance
    • parameters

      public ToolSchema.Builder parameters(Map<String,Object> parameters)
      Sets the tool parameters as a JSON Schema.
      参数:
      parameters - the parameter schema
      返回:
      this builder instance
    • outputSchema

      public ToolSchema.Builder outputSchema(Map<String,Object> outputSchema)
      Sets the optional tool output schema as a JSON Schema.
      参数:
      outputSchema - the output schema
      返回:
      this builder instance
    • strict

      public ToolSchema.Builder strict(Boolean strict)
      Sets the strict mode for schema validation.
      参数:
      strict - whether to enable strict mode
      返回:
      this builder instance
    • build

      public ToolSchema build()
      Builds a new ToolSchema instance with the set values.
      返回:
      a new ToolSchema instance