AnthropicMessage
Defined in: adapters/anthropic.ts:90
Anthropic message structure in a conversation.
Claude messages support only ‘user’ and ‘assistant’ roles. System messages
are handled separately via the system parameter at the request level.
Content can be a simple string or an array of structured blocks.
- AnthropicContentBlock
- AnthropicRequest
Properties
Section titled “Properties”content
Section titled “content”content:
string|AnthropicContentBlock[]
Defined in: adapters/anthropic.ts:95
Message content - simple string or array of content blocks for multimodal
role:
"user"|"assistant"
Defined in: adapters/anthropic.ts:92
Message role - only ‘user’ or ‘assistant’ (system is separate)