JsonSchema

org.llm4s.llmconnect.model.ResponseFormat.JsonSchema
case class JsonSchema(schema: Value, name: String, strict: Boolean) extends ResponseFormat

JSON schema constraint.

Value parameters

name

Schema name for debugging/tracing (OpenAI requires it; max 64 chars). Default "response" for backward compatibility.

schema

JSON schema as ujson value. For OpenAI, the schema is wrapped with name/strict in the provider mapping layer.

strict

When true, model must follow the exact schema (OpenAI strict mode). Default true; set false for partial schema adherence.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product