CreateChatCompletionStreamMessages
A message in the chat completion request. Represents a conversation turn from the user, assistant, system, or tool.
Example Usage
typescript
import { CreateChatCompletionStreamMessages } from "@meetkai/mka1/models/operations";
let value: CreateChatCompletionStreamMessages = {
role: "tool",
content: [],
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
role | operations.CreateChatCompletionStreamRole | ✔️ | The role of the message author. Determines how the message is interpreted by the model. |
name | string | ➖ | An optional name for the participant. For tool role messages, this is the name of the function called. |
toolCallId | string | ➖ | Tool call that this message is responding to. Required when role is 'tool'. |
content | operations.CreateChatCompletionStreamContent | ✔️ | The contents of the message. Can be a string, an array of content parts (for multimodal inputs), or null for assistant messages with tool calls. |
toolCalls | operations.CreateChatCompletionStreamToolCalls[] | ➖ | The tool calls generated by the model, such as function calls. Only present for assistant messages with tool calls. |