AnthropicMessage

data class AnthropicMessage(val role: String, val content: List<AnthropicContent>)(source)

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

Constructors

Link copied to clipboard
constructor(role: String, content: List<AnthropicContent>)

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.

Link copied to clipboard

The role of the sender of the message, such as "user", "assistant", or "system".