Expand description
Types mirroring the Amazon Bedrock Converse SDK surface.
Structs§
- Cache
Point Block - 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_controlmarker on the wire; the block itself is never emitted. A cache point with no preceding content part in the same message is silently ignored. - Content
Block Delta Event - Content
Block Start Event - Content
Block Start Tool Use - Content
Block Stop Event - Converse
Output - The top-level response from a
converse()call. - Generate
Image Output - The response of
POST /v1/images/generations(spec §8) — the output of thegenerate_imagehelper. - Generated
Image - One generated image: exactly one of
urlorb64_jsonis populated. - Image
Block - An image block (user side).
- Image
Generation Usage - Token consumption for an image generation (absent for providers that do not report it).
- Inference
Configuration - Inference
Configuration Builder - Message
- A conversation message with a role and one or more content blocks.
- Message
Builder - Message
Start Event - Message
Stop Event - Metadata
Event - Metrics
- System
Content Block - A system-prompt content entry: either text or a prompt-cache breakpoint.
Construct with
SystemContentBlock::textorSystemContentBlock::cache_point. - Token
Usage - Tool
- Tool
Configuration - Tool
Input Schema - Tool
Result Block - A tool-result block (user side).
- Tool
Specification - Tool
UseBlock - A tool-use invocation block (assistant side).
- Upload
File Output - The upload ticket returned by
POST /v1/files(spec §6) — also the output of theupload_filehelper. - Video
Block - A video block (user side, Bedrock Converse
videoBlockparity).
Enums§
- Cache
Point Type - The kind of prompt-cache breakpoint.
- Content
Block - A content block that can appear in a message.
- Content
Block Delta Payload - Content
Block Start Payload - Conversation
Role - Converse
Output Enum - Output wrapper — mirrors Bedrock’s
ConverseOutputenum. - Converse
Stream Output - All possible stream events — one variant per Bedrock stream event type.
- Image
Format - The format of an image content block.
- Image
Source - The source of an image content block.
- Media
Resolution - Video/image token-cost knob (spec §2) — serialized as the top-level
media_resolutionrequest field. The gateway rewrites it into the per-partdetailfield for Gemini models (Lowcuts video token cost ~4x); non-Gemini models ignore it. No client-side model gating. - Stop
Reason - Tool
Choice - Tool
Result Content - A single item inside a toolResult content list.
- Video
Format - The format of a video content block (Bedrock Converse
VideoFormatparity). - Video
Source - The source of a video content block.