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

A single content part within a multimodal message. More...

#include <entropic/types/content.h>

Public Attributes

ContentPartType type
 Part type discriminant.
 
std::string text
 Text content (type == TEXT)
 
std::string image_path
 Local file path (type == IMAGE)
 
std::string image_url
 URL or data URI (type == IMAGE)
 
int width = 0
 Image width after preprocessing (0 = not yet processed)
 
int height = 0
 Image height after preprocessing (0 = not yet processed)
 

Detailed Description

A single content part within a multimodal message.

Messages with simple string content are represented as a single TEXT part. Multimodal messages have multiple parts. The engine preserves part ordering — image position relative to text matters for some models.

Version
1.9.11

Definition at line 39 of file content.h.

Member Data Documentation

◆ height

int entropic::ContentPart::height = 0

Image height after preprocessing (0 = not yet processed)

Definition at line 45 of file content.h.

◆ image_path

std::string entropic::ContentPart::image_path

Local file path (type == IMAGE)

Definition at line 42 of file content.h.

◆ image_url

std::string entropic::ContentPart::image_url

URL or data URI (type == IMAGE)

Definition at line 43 of file content.h.

◆ text

std::string entropic::ContentPart::text

Text content (type == TEXT)

Definition at line 41 of file content.h.

◆ type

ContentPartType entropic::ContentPart::type

Part type discriminant.

Definition at line 40 of file content.h.

◆ width

int entropic::ContentPart::width = 0

Image width after preprocessing (0 = not yet processed)

Definition at line 44 of file content.h.


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