ReqLLM. Message. ContentPart
(ReqLLM v1.12.0)
View Source
ContentPart represents a single piece of content within a message.
Supports multiple content types:
:text- Plain text content:image_url- Image from URL:video_url- Video from URL:image- Image from binary data:file- File attachment or uploaded file reference:thinking- Chain-of-thought thinking content
See also
ReqLLM.Message- Multi-modal message composition using ContentPart collections
Summary
Functions
Returns the Zoi schema for this module
Types
@type t() :: %ReqLLM.Message.ContentPart{ data: nil | nil | any(), file_id: nil | nil | binary(), filename: nil | nil | binary(), media_type: nil | nil | binary(), metadata: map(), text: nil | nil | binary(), type: :text | :image_url | :video_url | :image | :file | :thinking, url: nil | nil | binary() }
Functions
Returns the Zoi schema for this module