effect-io-ai

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

OpenAiClient.ChatCompletionRequestToolCall

Tool call data attached to an assistant chat completion message.

Signature

type ChatCompletionRequestToolCall = {
  readonly id: string
  readonly type: "function"
  readonly function: {
    readonly name: string
    readonly arguments: string
  }
}

Source

Since v4.0.0