类的使用
dev.langchain4j.agent.tool.JsonSchemaProperty
使用JsonSchemaProperty的程序包
-
dev.langchain4j.agent.tool中JsonSchemaProperty的使用
修饰符和类型字段说明static final JsonSchemaPropertyJsonSchemaProperty.ARRAYA property with key "type" and value "array".static final JsonSchemaPropertyJsonSchemaProperty.BOOLEANA property with key "type" and value "boolean".static final JsonSchemaPropertyJsonSchemaProperty.INTEGERA property with key "type" and value "integer".static final JsonSchemaPropertyJsonSchemaProperty.NULLA property with key "type" and value "null".static final JsonSchemaPropertyJsonSchemaProperty.NUMBERA property with key "type" and value "number".static final JsonSchemaPropertyJsonSchemaProperty.OBJECTA property with key "type" and value "object".static final JsonSchemaPropertyJsonSchemaProperty.STRINGA property with key "type" and value "string".修饰符和类型方法说明static JsonSchemaPropertyJsonSchemaProperty.description(String value) Construct a property with key "description" and value.static JsonSchemaPropertyConstruct a property with key "enum" and all enum values taken from enumClass.static JsonSchemaPropertyConstruct a property with key "enum" and value enumValues.static JsonSchemaPropertyConstruct a property with key "enum" and value enumValues.static JsonSchemaPropertyConstruct a property with key and value.static JsonSchemaPropertyJsonSchemaProperty.items(JsonSchemaProperty type) Wraps the given type in a property with key "items".static JsonSchemaPropertyJsonSchemaProperty.objectItems(JsonSchemaProperty type) static JsonSchemaPropertyConstruct a property with key and value.static JsonSchemaPropertyConstruct a property with key "type" and value.修饰符和类型方法说明ToolSpecification.Builder.addOptionalParameter(String name, JsonSchemaProperty... jsonSchemaProperties) Adds an optional parameter to the tool.ToolSpecification.Builder.addParameter(String name, JsonSchemaProperty... jsonSchemaProperties) Adds a parameter to the tool.static JsonSchemaPropertyJsonSchemaProperty.items(JsonSchemaProperty type) Wraps the given type in a property with key "items".static JsonSchemaPropertyJsonSchemaProperty.objectItems(JsonSchemaProperty type) 类型变量类型为JsonSchemaProperty的dev.langchain4j.agent.tool中的方法参数修饰符和类型方法说明ToolSpecification.Builder.addOptionalParameter(String name, Iterable<JsonSchemaProperty> jsonSchemaProperties) Adds an optional parameter to the tool.ToolSpecification.Builder.addParameter(String name, Iterable<JsonSchemaProperty> jsonSchemaProperties) Adds a parameter to the tool.