Skip to main content

Module bedrock

Module bedrock 

Source
Expand description

Amazon Bedrock ConverseStream provider.

Uses the Bedrock ConverseStream API with AWS SigV4 request signing. For simplicity, we implement minimal SigV4 signing using the aws-sigv4 and aws-credential-types crates. If those aren’t available, callers can pass pre-signed requests or use an IAM proxy.

The api_key field in StreamConfig is expected to be formatted as: {access_key_id}:{secret_access_key} (with optional :{session_token}). The base_url in ModelConfig should be the Bedrock endpoint, e.g.: https://bedrock-runtime.us-east-1.amazonaws.com

Structs§

BedrockProvider
Unit struct — no state. All logic in the StreamProvider impl.