ObjectSchema
org.llm4s.toolapi.ObjectSchema
case class ObjectSchema[T](description: String, properties: Seq[PropertyDefinition[_]], additionalProperties: Boolean) extends SchemaDefinition[T]
Object schema with a fixed set of typed properties.
In strict mode all properties are emitted as required regardless of the individual PropertyDefinition.required flag, matching the behaviour expected by OpenAI strict-mode tool definitions.
Value parameters
- additionalProperties
-
Whether to allow extra keys beyond those listed
- description
-
Human-readable description shown to the LLM
- properties
-
Ordered sequence of property definitions
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SchemaDefinition[T]class Objecttrait Matchableclass Any
Members list
In this article