Skip to main content

Module content

Module content 

Source
Expand description

Public content block types — identical structure to claude-cli-sdk.

Structs§

Base64ImageSource
Inline base-64 encoded image data.
ImageBlock
An image content block.
TextBlock
A plain-text content block.
ThinkingBlock
An extended-thinking / reasoning block.
ToolResultBlock
The result of a tool call, sent back to the model.
ToolUseBlock
A tool invocation block emitted by the model.
UrlImageSource
A remotely-hosted image referenced by URL.

Enums§

ContentBlock
A block of content within a message.
ImageSource
The source of an image — either inline base-64 data or a remote URL.
ToolResultContent
Content produced by a tool — either text or an image.
UserContent
Content that can be sent in a user message.