org.llm4s.llmconnect.model.ResponseFormat
See theResponseFormat companion object
@Stable
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 Objecttrait Matchableclass Any
- Known subtypes
-
object Jsonclass JsonSchema
In this article