Message
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
| Property | Type | Description | Defined in |
|---|---|---|---|
content | string | MessageContentBlock[] | The content of the message, can be an array of content blocks or a string | packages/codeboltjs/src/types/libFunctionTypes.ts:59 |
role | "user" | "assistant" | "tool" | "system" | The role of the message sender: user, assistant, tool, or system | packages/codeboltjs/src/types/libFunctionTypes.ts:57 |
tool_call_id? | string | Optional ID for tool calls | packages/codeboltjs/src/types/libFunctionTypes.ts:61 |
tool_calls? | ToolCall[] | Optional tool calls for assistant messages | packages/codeboltjs/src/types/libFunctionTypes.ts:63 |