Skip to content

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

FieldTypeRequiredDescription
roleoperations.CreateChatCompletionStreamRole✔️The role of the message author. Determines how the message is interpreted by the model.
namestringAn optional name for the participant. For tool role messages, this is the name of the function called.
toolCallIdstringTool call that this message is responding to. Required when role is 'tool'.
contentoperations.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.
toolCallsoperations.CreateChatCompletionStreamToolCalls[]The tool calls generated by the model, such as function calls. Only present for assistant messages with tool calls.