Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/openai/lib/ChatCompletionStream.ts>ChatCompletionSnapshot.Choice.Message.ToolCall

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
namespace ChatCompletionSnapshot.Choice.Message.ToolCall
import { ChatCompletionSnapshot } from "https://deno.land/x/openai@v4.66.1/lib/ChatCompletionStream.ts";
const { ToolCall } = ChatCompletionSnapshot.Choice.Message;
interface ChatCompletionSnapshot.Choice.Message.ToolCall
import { type ChatCompletionSnapshot } from "https://deno.land/x/openai@v4.66.1/lib/ChatCompletionStream.ts";
const { ToolCall } = ChatCompletionSnapshot.Choice.Message;

Properties

id: string

The ID of the tool call.

type: "function"

The type of the tool.