An ordered run of text and media content for a model to read, built outside any conversation.
Summary
Functions
The ordered text and media blocks.
A unique identifier for this LLMContent.
Append image, audio, or PDF bytes as an inline media block. The media kind follows the MIME type.
Append an image, audio, or PDF file as an inline media block. The media kind follows the MIME type.
Append a block of text.
Types
Functions
@spec blocks(t()) :: {:ok, [Dagger.LLMContentBlock.t()]} | {:error, term()}
The ordered text and media blocks.
A unique identifier for this LLMContent.
@spec with_data(t(), Dagger.Bytes.t(), String.t()) :: t()
Append image, audio, or PDF bytes as an inline media block. The media kind follows the MIME type.
Prefer withFile for anything but small payloads: the bytes become part of the content's identity, so they travel with every reference to it.
@spec with_file(t(), Dagger.File.t(), [{:mime_type, String.t() | nil}]) :: t()
Append an image, audio, or PDF file as an inline media block. The media kind follows the MIME type.
Append a block of text.