Skip to main content

MessageObject

@codebolt/types


Interface: MessageObject

Defined in: common/types/src/codeboltjstypes/libFunctionTypes/llm.ts:13

Represents a message in the conversation with roles and content.

Properties

PropertyTypeDescriptionDefined 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 stringcommon/types/src/codeboltjstypes/libFunctionTypes/llm.ts:17
name?stringOptional name for the messagecommon/types/src/codeboltjstypes/libFunctionTypes/llm.ts:29
role"user" | "assistant" | "tool" | "system"The role of the message sender: user, assistant, tool, or systemcommon/types/src/codeboltjstypes/libFunctionTypes/llm.ts:15
tool_call_id?stringOptional ID for tool callscommon/types/src/codeboltjstypes/libFunctionTypes/llm.ts:25
tool_calls?ToolCall[]Optional tool calls for assistant messagescommon/types/src/codeboltjstypes/libFunctionTypes/llm.ts:27