Skip to main content
Module

x/openai/resources/mod.ts>ChatCompletionChunk.Choice.Delta.ToolCall

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
namespace ChatCompletionChunk.Choice.Delta.ToolCall
import { ChatCompletionChunk } from "https://deno.land/x/openai@v4.21.0/resources/mod.ts";
const { ToolCall } = ChatCompletionChunk.Choice.Delta;
interface ChatCompletionChunk.Choice.Delta.ToolCall
import { type ChatCompletionChunk } from "https://deno.land/x/openai@v4.21.0/resources/mod.ts";
const { ToolCall } = ChatCompletionChunk.Choice.Delta;

Properties

index: number
optional
id: string

The ID of the tool call.

optional
function: ToolCall.Function
optional
type: "function"

The type of the tool. Currently, only function is supported.