ResponseFormat

org.llm4s.llmconnect.model.ResponseFormat
See theResponseFormat companion trait

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case object Json extends ResponseFormat

Generic JSON object mode. Maps to e.g. OpenAI response_format: { "type": "json_object" }.

Generic JSON object mode. Maps to e.g. OpenAI response_format: { "type": "json_object" }.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Json.type
case class JsonSchema(schema: Value, name: String, strict: Boolean) extends ResponseFormat

JSON schema constraint.

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

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

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror