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

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

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
namespace ChatCompletionAssistantMessageParam
import { ChatCompletionAssistantMessageParam } from "https://deno.land/x/openai@v4.61.1/resources/chat/completions.ts";
interface ChatCompletionAssistantMessageParam
import { type ChatCompletionAssistantMessageParam } from "https://deno.land/x/openai@v4.61.1/resources/chat/completions.ts";

Properties

role: "assistant"

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

optional
content: string | Array<ChatCompletionContentPartText | ChatCompletionContentPartRefusal> | null

The contents of the assistant message. Required unless tool_calls or function_call is specified.

optional
deprecated
function_call: ChatCompletionAssistantMessageParam.FunctionCall | null
optional
name: string

An optional name for the participant. Provides the model information to differentiate between participants of the same role.

optional
refusal: string | null

The refusal message by the assistant.

optional
tool_calls: Array<ChatCompletionMessageToolCall>

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