Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.38.5/lib/ChatCompletionStream.ts";
const { ToolCall } = ChatCompletionSnapshot.Choice.Message;
interface ChatCompletionSnapshot.Choice.Message.ToolCall
import { type ChatCompletionSnapshot } from "https://deno.land/x/openai@v4.38.5/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.