effect-io-ai

Package: @effect/ai-openai-compat
Module: OpenAiClient

OpenAiClient.TextResponseFormatConfiguration

Text output format configuration for plain text, JSON object, or JSON Schema responses.

Signature

type TextResponseFormatConfiguration = | {
    readonly type: "text"
  }
  | {
    readonly type: "json_schema"
    readonly description?: string | undefined
    readonly name: string
    readonly schema: JsonObject
    readonly strict?: boolean | null | undefined
  }
  | {
    readonly type: "json_object"
  }

Source

Since v4.0.0