ArraySchema
org.llm4s.toolapi.ArraySchema
case class ArraySchema[A](description: String, itemSchema: SchemaDefinition[A], minItems: Option[Int], maxItems: Option[Int], uniqueItems: Boolean) extends SchemaDefinition[Seq[A]]
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
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article