AnthropicMessage

Represents a message within the Anthropic LLM system. This data class encapsulates the role of the message and its associated content.

Inheritors

Types

Link copied to clipboard
@SerialName(value = "assistant")
data class Assistant(val content: List<AnthropicContent>) : AnthropicMessage

Assistant Anthropic message.

Link copied to clipboard
@SerialName(value = "user")
data class User(val content: List<AnthropicContent>) : AnthropicMessage

User Anthropic message.

Properties

Link copied to clipboard

A list of content elements that form the message, where each content can be of varying types like text, image, document, tool usage, or tool result.