Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.33.1/resources/mod.ts";
const { ToolCall } = ChatCompletionChunk.Choice.Delta;
interface ChatCompletionChunk.Choice.Delta.ToolCall
import { type ChatCompletionChunk } from "https://deno.land/x/openai@v4.33.1/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.