Skip to content
1 min read · 130 words

Interface: ChatCompletionsMessage ​

Defined in: src/batteries/llm/openai_chat_completions/types.ts:138

Chat completion message wire object.

Properties ​

PropertyTypeDescriptionDefined in
content| string | ChatCompletionsContentBlock[] | nullThe contents of the message.src/batteries/llm/openai_chat_completions/types.ts:146
name?stringAn optional name for the participant.src/batteries/llm/openai_chat_completions/types.ts:150
role"user" | "assistant" | "tool" | "system" | "developer"The role of the author of this message.src/batteries/llm/openai_chat_completions/types.ts:142
tool_call_id?stringTool call identifier if responding to a tool call.src/batteries/llm/openai_chat_completions/types.ts:154
tool_calls?ChatCompletionsToolCallWire[]The tool calls generated by the model.src/batteries/llm/openai_chat_completions/types.ts:158