类 ToolSchemaModule

java.lang.Object
io.agentscope.core.tool.ToolSchemaModule
所有已实现的接口:
com.github.victools.jsonschema.generator.Module

public class ToolSchemaModule extends Object implements com.github.victools.jsonschema.generator.Module
A victools JSON Schema Module that reads ToolParam annotations to populate "description" and "required" in the generated schema.

By default, un-annotated fields are treated as required. Pass ToolSchemaModule.Option.PROPERTY_REQUIRED_FALSE_BY_DEFAULT to invert this.

另请参阅:
  • 构造器详细资料

  • 方法详细资料

    • applyToConfigBuilder

      public void applyToConfigBuilder(com.github.victools.jsonschema.generator.SchemaGeneratorConfigBuilder builder)
      指定者:
      applyToConfigBuilder 在接口中 com.github.victools.jsonschema.generator.Module