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

x/openai/resources/chat/mod.ts>ChatCompletionAssistantMessageParam

Deno build of the official Typescript library for the OpenAI API. Source: https://github.com/openai/openai-node
Extremely Popular
Go to Latest
namespace ChatCompletionAssistantMessageParam
import { ChatCompletionAssistantMessageParam } from "https://deno.land/x/openai@v4.19.1/resources/chat/mod.ts";

Interfaces

Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.

interface ChatCompletionAssistantMessageParam
import { type ChatCompletionAssistantMessageParam } from "https://deno.land/x/openai@v4.19.1/resources/chat/mod.ts";

Properties

content: string | null

The contents of the assistant message.

role: "assistant"

The role of the messages author, in this case assistant.

Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.

optional
tool_calls: Array<ChatCompletionMessageToolCall>

The tool calls generated by the model, such as function calls.