Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::Message Struct Reference

A message in a conversation. More...

#include <entropic/types/message.h>

Public Attributes

std::string role
 Message role.
 
std::string content
 Message text content (always populated)
 
std::vector< ContentPartcontent_parts
 Multimodal parts (empty for text-only)
 
std::unordered_map< std::string, std::string > metadata
 Arbitrary metadata.
 

Detailed Description

A message in a conversation.

Maps to Python Message dataclass. Roles: "user", "assistant", "system", "tool". Metadata is arbitrary key-value pairs (not enforced at type level).

For text-only messages, content is populated and content_parts is empty. For multimodal messages, content_parts is populated and content holds the extracted text (for backward compatibility with code that reads content directly).

Version
1.9.11

Definition at line 35 of file message.h.

Member Data Documentation

◆ content

std::string entropic::Message::content

Message text content (always populated)

Definition at line 37 of file message.h.

◆ content_parts

std::vector<ContentPart> entropic::Message::content_parts

Multimodal parts (empty for text-only)

Definition at line 38 of file message.h.

◆ metadata

std::unordered_map<std::string, std::string> entropic::Message::metadata

Arbitrary metadata.

Definition at line 39 of file message.h.

◆ role

std::string entropic::Message::role

Message role.

Definition at line 36 of file message.h.


The documentation for this struct was generated from the following file: