类 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.
- 另请参阅:
-
嵌套类概要
嵌套类 -
构造器概要
构造器构造器说明ToolSchemaModule(ToolSchemaModule.Option... options) Creates a module with the given options. -
方法概要
修饰符和类型方法说明voidapplyToConfigBuilder(com.github.victools.jsonschema.generator.SchemaGeneratorConfigBuilder builder)
-
构造器详细资料
-
ToolSchemaModule
Creates a module with the given options.- 参数:
options- passToolSchemaModule.Option.PROPERTY_REQUIRED_FALSE_BY_DEFAULTto treat un-annotated fields as optional
-
-
方法详细资料
-
applyToConfigBuilder
public void applyToConfigBuilder(com.github.victools.jsonschema.generator.SchemaGeneratorConfigBuilder builder) - 指定者:
applyToConfigBuilder在接口中com.github.victools.jsonschema.generator.Module
-