类 JsonSchemaProperty
java.lang.Object
dev.langchain4j.agent.tool.JsonSchemaProperty
Represents a property in a JSON schema.
-
字段概要
字段修饰符和类型字段说明static final JsonSchemaPropertyA property with key "type" and value "array".static final JsonSchemaPropertyA property with key "type" and value "boolean".static final JsonSchemaPropertyA property with key "type" and value "integer".static final JsonSchemaPropertyA property with key "type" and value "null".static final JsonSchemaPropertyA property with key "type" and value "number".static final JsonSchemaPropertyA property with key "type" and value "object".static final JsonSchemaPropertyA property with key "type" and value "string". -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static JsonSchemaPropertydescription(String value) Construct a property with key "description" and value.static JsonSchemaPropertyConstruct a property with key "enum" and all enum values taken from enumClass.static JsonSchemaPropertyConstruct a property with key "enum" and value enumValues.static JsonSchemaPropertyConstruct a property with key "enum" and value enumValues.booleanstatic JsonSchemaPropertyConstruct a property with key and value.inthashCode()static JsonSchemaPropertyitems(JsonSchemaProperty type) Wraps the given type in a property with key "items".key()Get the key.static JsonSchemaPropertystatic JsonSchemaPropertyConstruct a property with key and value.toString()static JsonSchemaPropertyConstruct a property with key "type" and value.value()Get the value.
-
字段详细资料
-
STRING
A property with key "type" and value "string". -
INTEGER
A property with key "type" and value "integer". -
NUMBER
A property with key "type" and value "number". -
OBJECT
A property with key "type" and value "object". -
ARRAY
A property with key "type" and value "array". -
BOOLEAN
A property with key "type" and value "boolean". -
NULL
A property with key "type" and value "null".
-
-
构造器详细资料
-
JsonSchemaProperty
Construct a property with key and value.- 参数:
key- the key.value- the value.
-
-
方法详细资料
-
key
Get the key.- 返回:
- the key.
-
value
Get the value.- 返回:
- the value.
-
equals
-
hashCode
public int hashCode() -
toString
-
from
Construct a property with key and value.Equivalent to
new JsonSchemaProperty(key, value).- 参数:
key- the key.value- the value.- 返回:
- a property with key and value.
-
property
Construct a property with key and value.Equivalent to
new JsonSchemaProperty(key, value).- 参数:
key- the key.value- the value.- 返回:
- a property with key and value.
-
type
Construct a property with key "type" and value.Equivalent to
new JsonSchemaProperty("type", value).- 参数:
value- the value.- 返回:
- a property with key and value.
-
description
Construct a property with key "description" and value.Equivalent to
new JsonSchemaProperty("description", value).- 参数:
value- the value.- 返回:
- a property with key and value.
-
enums
Construct a property with key "enum" and value enumValues.- 参数:
enumValues- enum values as strings. For example:enums("CELSIUS", "FAHRENHEIT")- 返回:
- a property with key "enum" and value enumValues
-
enums
Construct a property with key "enum" and value enumValues.Verifies that each value is a java class.
- 参数:
enumValues- enum values. For example:enums(TemperatureUnit.CELSIUS, TemperatureUnit.FAHRENHEIT)- 返回:
- a property with key "enum" and value enumValues
-
enums
Construct a property with key "enum" and all enum values taken from enumClass.- 参数:
enumClass- enum class. For example:enums(TemperatureUnit.class)- 返回:
- a property with key "enum" and values taken from enumClass
-
items
Wraps the given type in a property with key "items".- 参数:
type- the type- 返回:
- a property with key "items" and value type.
-
objectItems
-