Skip to main content

Module types

Module types 

Source
Expand description

Types mirroring the Amazon Bedrock Converse SDK surface.

Structs§

CachePointBlock
A prompt-cache breakpoint (Bedrock parity). Placed in message or system content after the prefix to cache: the content part immediately preceding it gets an ephemeral cache_control marker on the wire; the block itself is never emitted. A cache point with no preceding content part in the same message is silently ignored.
ContentBlockDeltaEvent
ContentBlockStartEvent
ContentBlockStartToolUse
ContentBlockStopEvent
ConverseOutput
The top-level response from a converse() call.
ImageBlock
An image block (user side).
InferenceConfiguration
InferenceConfigurationBuilder
Message
A conversation message with a role and one or more content blocks.
MessageBuilder
MessageStartEvent
MessageStopEvent
MetadataEvent
Metrics
SystemContentBlock
A system-prompt content entry: either text or a prompt-cache breakpoint. Construct with SystemContentBlock::text or SystemContentBlock::cache_point.
TokenUsage
Tool
ToolConfiguration
ToolInputSchema
ToolResultBlock
A tool-result block (user side).
ToolSpecification
ToolUseBlock
A tool-use invocation block (assistant side).

Enums§

CachePointType
The kind of prompt-cache breakpoint.
ContentBlock
A content block that can appear in a message.
ContentBlockDeltaPayload
ContentBlockStartPayload
ConversationRole
ConverseOutputEnum
Output wrapper — mirrors Bedrock’s ConverseOutput enum.
ConverseStreamOutput
All possible stream events — one variant per Bedrock stream event type.
ImageFormat
The format of an image content block.
ImageSource
The source of an image content block.
StopReason
ToolChoice
ToolResultContent
A single item inside a toolResult content list.