org.llm4s.toolapi.ArraySchema
See theArraySchema companion object
Array schema with item type and size constraints.
Value parameters
-
description
-
Human-readable description shown to the LLM
-
itemSchema
-
Schema applied to every element of the array
-
maxItems
-
Maximum number of elements (inclusive)
-
minItems
-
Minimum number of elements (inclusive)
-
uniqueItems
-
When true, all elements must be distinct
Attributes
-
Companion
-
object
-
Graph
-
-
Supertypes
-
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Members list
Serialise this schema to a JSON Schema ujson.Value.
Serialise this schema to a JSON Schema ujson.Value.
Value parameters
-
strict
-
When true, all object properties are treated as required, matching OpenAI strict-mode tool definitions.
Attributes
Replace the description shown to the LLM.
Replace the description shown to the LLM.
Attributes
Replace the schema every element must conform to.
Replace the schema every element must conform to.
Attributes
Set the maximum number of elements (inclusive).
Set the maximum number of elements (inclusive).
Attributes
Set or clear the maximum number of elements (inclusive).
Set or clear the maximum number of elements (inclusive).
Attributes
Set the minimum number of elements (inclusive).
Set the minimum number of elements (inclusive).
Attributes
Set or clear the minimum number of elements (inclusive).
Set or clear the minimum number of elements (inclusive).
Attributes
Add minimum and/or maximum array size constraints.
Add minimum and/or maximum array size constraints.
Value parameters
-
max
-
Optional maximum number of items
-
min
-
Optional minimum number of items
Attributes
Require all array elements to be unique.
Require all array elements to be unique.
Value parameters
-
unique
-
true to enforce uniqueness (default)
Attributes
Attributes
-
Inherited from:
-
Product
Attributes
-
Inherited from:
-
Product