Package | Description |
---|---|
dev.langchain4j.agent.tool |
Modifier and Type | Field and Description |
---|---|
static JsonSchemaProperty |
JsonSchemaProperty.ARRAY
A property with key "type" and value "array".
|
static JsonSchemaProperty |
JsonSchemaProperty.BOOLEAN
A property with key "type" and value "boolean".
|
static JsonSchemaProperty |
JsonSchemaProperty.INTEGER
A property with key "type" and value "integer".
|
static JsonSchemaProperty |
JsonSchemaProperty.NULL
A property with key "type" and value "null".
|
static JsonSchemaProperty |
JsonSchemaProperty.NUMBER
A property with key "type" and value "number".
|
static JsonSchemaProperty |
JsonSchemaProperty.OBJECT
A property with key "type" and value "object".
|
static JsonSchemaProperty |
JsonSchemaProperty.STRING
A property with key "type" and value "string".
|
Modifier and Type | Method and Description |
---|---|
static JsonSchemaProperty |
JsonSchemaProperty.description(String value)
Construct a property with key "description" and value.
|
static JsonSchemaProperty |
JsonSchemaProperty.enums(Class<?> enumClass)
Construct a property with key "enum" and values taken from enumClass.
|
static JsonSchemaProperty |
JsonSchemaProperty.enums(Object... enumValues)
Construct a property with key "enum" and value enumValues.
|
static JsonSchemaProperty |
JsonSchemaProperty.enums(String... enumValues)
Construct a property with key "enum" and value enumValues.
|
static JsonSchemaProperty |
JsonSchemaProperty.from(String key,
Object value)
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.property(String key,
Object value)
Construct a property with key and value.
|
static JsonSchemaProperty |
JsonSchemaProperty.type(String value)
Construct a property with key "type" and value.
|
Modifier and Type | Method and Description |
---|---|
ToolSpecification.Builder |
ToolSpecification.Builder.addOptionalParameter(String name,
JsonSchemaProperty... jsonSchemaProperties)
Adds an optional parameter to the tool.
|
ToolSpecification.Builder |
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".
|
Modifier and Type | Method and Description |
---|---|
ToolSpecification.Builder |
ToolSpecification.Builder.addOptionalParameter(String name,
Iterable<JsonSchemaProperty> jsonSchemaProperties)
Adds an optional parameter to the tool.
|
ToolSpecification.Builder |
ToolSpecification.Builder.addParameter(String name,
Iterable<JsonSchemaProperty> jsonSchemaProperties)
Adds a parameter to the tool.
|
Copyright © 2024. All rights reserved.