Package dev.langchain4j.agent.tool
Class JsonSchemaProperty
java.lang.Object
dev.langchain4j.agent.tool.JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a property in a JSON schema.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonArraySchema.builder()
insteadstatic final JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonBooleanSchema()
insteadstatic final JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonIntegerSchema()
insteadstatic final JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.static final JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonNumberSchema()
insteadstatic final JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonObjectSchema.builder()
insteadstatic final JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonStringSchema()
instead -
Constructor Summary
ConstructorDescriptionJsonSchemaProperty
(String key, Object value) Deprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElement
API instead to define the schema for tool parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonSchemaProperty
description
(String value) Deprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElement
API instead to define the schema for tool parametersstatic JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonEnumSchema
insteadstatic JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonEnumSchema
insteadstatic JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonEnumSchema
insteadboolean
Deprecated, for removal: This API element is subject to removal in a future version.static JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElement
API instead to define the schema for tool parametersint
hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.static JsonSchemaProperty
items
(JsonSchemaProperty type) Deprecated, for removal: This API element is subject to removal in a future version.please useJsonArraySchema
insteadkey()
Deprecated, for removal: This API element is subject to removal in a future version.Get the key.static JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonObjectSchema
insteadstatic JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElement
API instead to define the schema for tool parameterstoString()
Deprecated, for removal: This API element is subject to removal in a future version.static JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElement
API instead to define the schema for tool parametersvalue()
Deprecated, for removal: This API element is subject to removal in a future version.Get the value.
-
Field Details
-
STRING
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonStringSchema()
insteadA property with key "type" and value "string". -
INTEGER
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonIntegerSchema()
insteadA property with key "type" and value "integer". -
NUMBER
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonNumberSchema()
insteadA property with key "type" and value "number". -
OBJECT
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonObjectSchema.builder()
insteadA property with key "type" and value "object". -
ARRAY
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonArraySchema.builder()
insteadA property with key "type" and value "array". -
BOOLEAN
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonBooleanSchema()
insteadA property with key "type" and value "boolean". -
NULL
Deprecated, for removal: This API element is subject to removal in a future version.A property with key "type" and value "null".
-
-
Constructor Details
-
JsonSchemaProperty
Deprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElement
API instead to define the schema for tool parametersConstruct a property with key and value.- Parameters:
key
- the key.value
- the value.
-
-
Method Details
-
key
Deprecated, for removal: This API element is subject to removal in a future version.Get the key.- Returns:
- the key.
-
value
Deprecated, for removal: This API element is subject to removal in a future version.Get the value.- Returns:
- the value.
-
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version. -
from
Deprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElement
API instead to define the schema for tool parametersConstruct a property with key and value.Equivalent to
new JsonSchemaProperty(key, value)
.- Parameters:
key
- the key.value
- the value.- Returns:
- a property with key and value.
-
property
Deprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElement
API instead to define the schema for tool parametersConstruct a property with key and value.Equivalent to
new JsonSchemaProperty(key, value)
.- Parameters:
key
- the key.value
- the value.- Returns:
- a property with key and value.
-
type
Deprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElement
API instead to define the schema for tool parametersConstruct a property with key "type" and value.Equivalent to
new JsonSchemaProperty("type", value)
.- Parameters:
value
- the value.- Returns:
- a property with key and value.
-
description
Deprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElement
API instead to define the schema for tool parametersConstruct a property with key "description" and value.Equivalent to
new JsonSchemaProperty("description", value)
.- Parameters:
value
- the value.- Returns:
- a property with key and value.
-
enums
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonEnumSchema
insteadConstruct a property with key "enum" and value enumValues.- Parameters:
enumValues
- enum values as strings. For example:enums("CELSIUS", "FAHRENHEIT")
- Returns:
- a property with key "enum" and value enumValues
-
enums
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonEnumSchema
insteadConstruct a property with key "enum" and value enumValues.Verifies that each value is a java class.
- Parameters:
enumValues
- enum values. For example:enums(TemperatureUnit.CELSIUS, TemperatureUnit.FAHRENHEIT)
- Returns:
- a property with key "enum" and value enumValues
-
enums
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonEnumSchema
insteadConstruct a property with key "enum" and all enum values taken from enumClass.- Parameters:
enumClass
- enum class. For example:enums(TemperatureUnit.class)
- Returns:
- a property with key "enum" and values taken from enumClass
-
items
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonArraySchema
insteadWraps the given type in a property with key "items".- Parameters:
type
- the type- Returns:
- a property with key "items" and value type.
-
objectItems
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonObjectSchema
instead
-
JsonSchemaElement
API instead to define the schema for tool parameters