ResponseFormat

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

Requested format for LLM completion output (structured output).

When set in CompletionOptions.responseFormat, the provider is asked to return output in the specified format. Support is provider- and model-dependent; see CompletionOptions ScalaDoc for capability validation and fallback behavior.

  • '''Json''': Generic JSON object mode; the model is instructed to return valid JSON.
  • '''JsonSchema(schema)''': Provider-specific JSON schema; the model's output is constrained to match the given schema where supported.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Json
class JsonSchema
In this article