Skip to content

@ralphschuler.ai function caller.index.<internal>.ChatCompletionSnapshot.Choice.Message

github-actions edited this page Nov 26, 2023 · 1 revision

Interface: Message

ChatCompletionSnapshot.Choice.Message

A chat completion delta generated by streamed model responses.

Table of contents

Properties

Properties

content

Optional content: null | string

The contents of the chunk message.

Defined in

node_modules/openai/lib/ChatCompletionStream.d.ts:79


function_call

Optional function_call: FunctionCall

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

Defined in

node_modules/openai/lib/ChatCompletionStream.d.ts:84


role

Optional role: "function" | "assistant" | "system" | "user" | "tool"

The role of the author of this message.

Defined in

node_modules/openai/lib/ChatCompletionStream.d.ts:89


tool_calls

Optional tool_calls: ToolCall[]

Defined in

node_modules/openai/lib/ChatCompletionStream.d.ts:85

Typescript Libraries

Modules

Namespaces

Clone this wiki locally