类 ToolSchema

java.lang.Object
io.agentscope.core.model.ToolSchema

public class ToolSchema extends Object
Immutable tool schema definition. Describes a tool's interface using JSON Schema for parameters.
  • 方法详细资料

    • getName

      public String getName()
      Gets the tool name.
      返回:
      the tool name
    • getDescription

      public String getDescription()
      Gets the tool description.
      返回:
      the tool description
    • getParameters

      public Map<String,Object> getParameters()
      Gets the tool parameters as a JSON Schema.
      返回:
      an unmodifiable map containing the parameter schema
    • getOutputSchema

      public Map<String,Object> getOutputSchema()
      Gets the optional tool output schema as a JSON Schema.
      返回:
      an unmodifiable map containing the output schema, or null if unspecified
    • getStrict

      public Boolean getStrict()
      Gets the strict mode flag for schema validation.
      返回:
      true if strict mode is enabled, false otherwise, or null if not specified
    • builder

      public static ToolSchema.Builder builder()
      Creates a new builder for ToolSchema.
      返回:
      a new Builder instance