Skip to main content

Message

@codebolt/codeboltjs


Interface: Message

Defined in: packages/codeboltjs/src/types/libFunctionTypes.ts:55

Represents a message in the conversation with roles and content.

Indexable

[key: string]: unknown

Additional properties that might be present

Properties

PropertyTypeDescriptionDefined in
contentstring | MessageContentBlock[]The content of the message, can be an array of content blocks or a stringpackages/codeboltjs/src/types/libFunctionTypes.ts:59
role"user" | "assistant" | "tool" | "system"The role of the message sender: user, assistant, tool, or systempackages/codeboltjs/src/types/libFunctionTypes.ts:57
tool_call_id?stringOptional ID for tool callspackages/codeboltjs/src/types/libFunctionTypes.ts:61
tool_calls?ToolCall[]Optional tool calls for assistant messagespackages/codeboltjs/src/types/libFunctionTypes.ts:63