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.
GenerateImageOutput
The response of POST /v1/images/generations (spec §8) — the output of the generate_image helper.
GeneratedImage
One generated image: exactly one of url or b64_json is populated.
ImageBlock
An image block (user side).
ImageGenerationUsage
Token consumption for an image generation (absent for providers that do not report it).
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).
UploadFileOutput
The upload ticket returned by POST /v1/files (spec §6) — also the output of the upload_file helper.
VideoBlock
A video block (user side, Bedrock Converse videoBlock parity).

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.
MediaResolution
Video/image token-cost knob (spec §2) — serialized as the top-level media_resolution request field. The gateway rewrites it into the per-part detail field for Gemini models (Low cuts video token cost ~4x); non-Gemini models ignore it. No client-side model gating.
StopReason
ToolChoice
ToolResultContent
A single item inside a toolResult content list.
VideoFormat
The format of a video content block (Bedrock Converse VideoFormat parity).
VideoSource
The source of a video content block.