Skip to main content
Deno 2 is finally 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
Go to Latest
namespace ChatCompletionSnapshot.Choice.Message.ToolCall
import { ChatCompletionSnapshot } from "https://deno.land/x/openai@v4.41.1/lib/ChatCompletionStream.ts";
const { ToolCall } = ChatCompletionSnapshot.Choice.Message;
interface ChatCompletionSnapshot.Choice.Message.ToolCall
import { type ChatCompletionSnapshot } from "https://deno.land/x/openai@v4.41.1/lib/ChatCompletionStream.ts";
const { ToolCall } = ChatCompletionSnapshot.Choice.Message;

Properties

optional
id: string

The ID of the tool call.

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

The type of the tool.