effect-io-ai

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

OpenAiClient.ChatCompletionToolChoice

Controls whether the model may call tools and can force a specific function.

Signature

type ChatCompletionToolChoice = | "none"
  | "auto"
  | "required"
  | {
    readonly type: "function"
    readonly function: {
      readonly name: string
    }
  }

Source

Since v4.0.0