Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Deno build of the official Typescript library for the OpenAI API. Source: https://github.com/openai/openai-node
Extremely Popular
Go to Latest
namespace ChatCompletionChunk.Choice.Delta.ToolCall
import { ChatCompletionChunk } from "https://deno.land/x/openai@v4.19.0/resources/chat/mod.ts";
const { ToolCall } = ChatCompletionChunk.Choice.Delta;
interface ChatCompletionChunk.Choice.Delta.ToolCall
import { type ChatCompletionChunk } from "https://deno.land/x/openai@v4.19.0/resources/chat/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.