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
Latest
namespace ChatCompletionSnapshot.Choice.Message.ToolCall
import { ChatCompletionSnapshot } from "https://deno.land/x/openai@v4.69.0/lib/ChatCompletionStream.ts";
const { ToolCall } = ChatCompletionSnapshot.Choice.Message;
interface ChatCompletionSnapshot.Choice.Message.ToolCall
import { type ChatCompletionSnapshot } from "https://deno.land/x/openai@v4.69.0/lib/ChatCompletionStream.ts";
const { ToolCall } = ChatCompletionSnapshot.Choice.Message;

Properties

id: string

The ID of the tool call.

type: "function"

The type of the tool.