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
FieldsModifier and TypeFieldDescriptionstatic final JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.please useJsonArraySchema.builder()insteadstatic final JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.please useJsonBooleanSchema()insteadstatic final JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.please useJsonIntegerSchema()insteadstatic final JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.static final JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.please useJsonNumberSchema()insteadstatic final JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.please useJsonObjectSchema.builder()insteadstatic final JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.please useJsonStringSchema()instead -
Constructor Summary
ConstructorsConstructorDescriptionJsonSchemaProperty(String key, Object value) Deprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElementAPI instead to define the schema for tool parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonSchemaPropertydescription(String value) Deprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElementAPI instead to define the schema for tool parametersstatic JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.please useJsonEnumSchemainsteadstatic JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.please useJsonEnumSchemainsteadstatic JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.please useJsonEnumSchemainsteadbooleanDeprecated, for removal: This API element is subject to removal in a future version.static JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElementAPI instead to define the schema for tool parametersinthashCode()Deprecated, for removal: This API element is subject to removal in a future version.static JsonSchemaPropertyitems(JsonSchemaProperty type) Deprecated, for removal: This API element is subject to removal in a future version.please useJsonArraySchemainsteadkey()Deprecated, for removal: This API element is subject to removal in a future version.Get the key.static JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.please useJsonObjectSchemainsteadstatic JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElementAPI instead to define the schema for tool parameterstoString()Deprecated, for removal: This API element is subject to removal in a future version.static JsonSchemaPropertyDeprecated, for removal: This API element is subject to removal in a future version.please use the newJsonSchemaElementAPI 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 newJsonSchemaElementAPI 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 newJsonSchemaElementAPI 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 newJsonSchemaElementAPI 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 newJsonSchemaElementAPI 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 newJsonSchemaElementAPI 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 useJsonEnumSchemainsteadConstruct 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 useJsonEnumSchemainsteadConstruct 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 useJsonEnumSchemainsteadConstruct 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 useJsonArraySchemainsteadWraps 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 useJsonObjectSchemainstead
-
JsonSchemaElementAPI instead to define the schema for tool parameters