Uses of Class
dev.langchain4j.agent.tool.JsonSchemaProperty
-
Uses of JsonSchemaProperty in dev.langchain4j.agent.tool
Modifier 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".Modifier 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
JsonSchemaProperty.objectItems
(JsonSchemaProperty type) static JsonSchemaProperty
Construct a property with key and value.static JsonSchemaProperty
Construct a property with key "type" and value.Modifier 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".static JsonSchemaProperty
JsonSchemaProperty.objectItems
(JsonSchemaProperty type) Modifier 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. -
Uses of JsonSchemaProperty in dev.langchain4j.model.zhipu.chat
Modifier and TypeMethodDescriptionFunction.Builder.addOptionalParameter
(String name, JsonSchemaProperty... jsonSchemaProperties) Function.Builder.addParameter
(String name, JsonSchemaProperty... jsonSchemaProperties)