1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! AWS Bedrock Converse adapters.
//!
//! Two adapters share this module:
//!
//! * `BedrockApiAdapter` — always available. Uses Bedrock's simple
//! `Authorization: Bearer $BEDROCK_API_KEY` auth. Adds no new dependencies; reuses the shared
//! reqwest `WebClient` and a hand-rolled event-stream parser.
//!
//! * `BedrockSigv4Adapter` — opt-in via the `bedrock-sigv4` Cargo feature. Full AWS credential
//! chain + SigV4 request signing via `aws-config` and `aws-sigv4`. Best for workloads that
//! already use AWS credentials (env, profile, SSO, IMDS, AssumeRole). Pulls in the AWS SDK
//! smithy/hyper dep tree.
//!
//! Both adapters use the Converse API which normalizes chat requests across Bedrock's
//! publishers (Anthropic, Amazon Nova, Meta Llama, Mistral, Cohere, AI21).
//!
//! Usage: namespace model names with `bedrock_api::` (default) or `bedrock_sigv4::`, e.g.
//! `bedrock_api::anthropic.claude-sonnet-4-5-20250929-v1:0`
//! `bedrock_sigv4::amazon.nova-pro-v1:0`
//!
//! API Documentation:
//! - Converse: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html
//! - ConverseStream: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html
pub use *;
pub use *;