A single piece of content within an LLM message.
Summary
Functions
The arguments passed to the tool, JSON-encoded (for TOOL_CALL kind).
The unique ID of a tool call (for TOOL_CALL or TOOL_RESULT kinds).
Whether the tool call resulted in an error (for TOOL_RESULT kind).
A unique identifier for this LLMContentBlock.
The kind of content block, which determines the other populated fields.
Provider-specific opaque data (e.g. Anthropic thinking signature). Preserve it when reconstructing a conversation.
Text content (for TEXT, THINKING, or TOOL_RESULT kinds).
The name of the tool called (for TOOL_CALL kind).
Types
Functions
@spec arguments(t()) :: {:ok, Dagger.JSON.t()} | {:error, term()}
The arguments passed to the tool, JSON-encoded (for TOOL_CALL kind).
The unique ID of a tool call (for TOOL_CALL or TOOL_RESULT kinds).
Whether the tool call resulted in an error (for TOOL_RESULT kind).
A unique identifier for this LLMContentBlock.
@spec kind(t()) :: {:ok, Dagger.LLMContentBlockKind.t()} | {:error, term()}
The kind of content block, which determines the other populated fields.
Provider-specific opaque data (e.g. Anthropic thinking signature). Preserve it when reconstructing a conversation.
Text content (for TEXT, THINKING, or TOOL_RESULT kinds).
The name of the tool called (for TOOL_CALL kind).