Uses of Class
dev.langchain4j.agent.tool.JsonSchemaProperty
Packages that use JsonSchemaProperty
-
Uses of JsonSchemaProperty in dev.langchain4j.agent.tool
Fields in dev.langchain4j.agent.tool declared as JsonSchemaPropertyModifier and TypeFieldDescriptionstatic final JsonSchemaProperty
JsonSchemaProperty.ARRAY
A property with key "type" and value "array".static final JsonSchemaProperty
JsonSchemaProperty.BOOLEAN
A property with key "type" and value "boolean".static final JsonSchemaProperty
JsonSchemaProperty.INTEGER
A property with key "type" and value "integer".static final JsonSchemaProperty
JsonSchemaProperty.NULL
A property with key "type" and value "null".static final JsonSchemaProperty
JsonSchemaProperty.NUMBER
A property with key "type" and value "number".static final JsonSchemaProperty
JsonSchemaProperty.OBJECT
A property with key "type" and value "object".static final JsonSchemaProperty
JsonSchemaProperty.STRING
A property with key "type" and value "string".Methods in dev.langchain4j.agent.tool that return JsonSchemaPropertyModifier and TypeMethodDescriptionstatic JsonSchemaProperty
JsonSchemaProperty.description
(String value) Construct a property with key "description" and value.static JsonSchemaProperty
Construct a property with key "enum" and all enum values taken from enumClass.static JsonSchemaProperty
Construct a property with key "enum" and value enumValues.static JsonSchemaProperty
Construct a property with key "enum" and value enumValues.static JsonSchemaProperty
Construct a property with key and value.static JsonSchemaProperty
JsonSchemaProperty.items
(JsonSchemaProperty type) Wraps the given type in a property with key "items".static JsonSchemaProperty
Construct a property with key and value.static JsonSchemaProperty
Construct a property with key "type" and value.Methods in dev.langchain4j.agent.tool with parameters of type JsonSchemaPropertyModifier and TypeMethodDescriptionToolSpecification.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 JsonSchemaProperty
JsonSchemaProperty.items
(JsonSchemaProperty type) Wraps the given type in a property with key "items".Method parameters in dev.langchain4j.agent.tool with type arguments of type JsonSchemaPropertyModifier and TypeMethodDescriptionToolSpecification.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.