pub trait BedrockModel: Model {
// Required method
fn bedrock_id(&self) -> &'static str;
// Provided method
fn default_inference_profile(&self) -> InferenceProfile { ... }
}Expand description
Trait for models available on AWS Bedrock
Models implement this to be usable with BedrockProvider.
Required Methods§
Sourcefn bedrock_id(&self) -> &'static str
fn bedrock_id(&self) -> &'static str
The Bedrock model ID
This is the full model identifier used in Bedrock API calls, e.g., “anthropic.claude-sonnet-4-5-20250929-v1:0”
Provided Methods§
Sourcefn default_inference_profile(&self) -> InferenceProfile
fn default_inference_profile(&self) -> InferenceProfile
The default inference profile for this model
Models that require cross-region inference (Claude 4/4.5, Nova 2 Lite)
should return InferenceProfile::Global. Other models default to
InferenceProfile::None for single-region invocation.