MessageObject
Interface: MessageObject
Defined in: common/types/src/codeboltjstypes/libFunctionTypes/llm.ts:13
Represents a message in the conversation with roles and content.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
content | | string | { image_url?: { url: string; }; text?: string; type: string; }[] | The content of the message, can be an array of content blocks or a string | common/types/src/codeboltjstypes/libFunctionTypes/llm.ts:17 |
name? | string | Optional name for the message | common/types/src/codeboltjstypes/libFunctionTypes/llm.ts:29 |
role | "user" | "assistant" | "tool" | "system" | The role of the message sender: user, assistant, tool, or system | common/types/src/codeboltjstypes/libFunctionTypes/llm.ts:15 |
tool_call_id? | string | Optional ID for tool calls | common/types/src/codeboltjstypes/libFunctionTypes/llm.ts:25 |
tool_calls? | ToolCall[] | Optional tool calls for assistant messages | common/types/src/codeboltjstypes/libFunctionTypes/llm.ts:27 |