pub struct BedrockModelDescriptor {
pub model_id: &'static str,
pub display_name: &'static str,
pub context_window_label: &'static str,
pub max_output_label: Option<&'static str>,
pub conversation_api: BedrockConversationApi,
pub requires_inference_profile: bool,
pub model_card: &'static str,
}Expand description
Documented model identity and limits, separate from executable configuration.
Fields§
§model_id: &'static str§display_name: &'static str§context_window_label: &'static str§max_output_label: Option<&'static str>§conversation_api: BedrockConversationApi§requires_inference_profile: bool§model_card: &'static strImplementations§
Source§impl BedrockModelDescriptor
impl BedrockModelDescriptor
Sourcepub fn with_token_limits(
&self,
context_tokens: usize,
output_tokens: usize,
) -> Result<RuntimeBedrockModel, ProviderError>
pub fn with_token_limits( &self, context_tokens: usize, output_tokens: usize, ) -> Result<RuntimeBedrockModel, ProviderError>
Select explicit application token ceilings. They must be verified against
the chosen endpoint before use; a missing card limit is not unlimited.
Use BedrockProvider::with_inference_profile or an exact runtime target
for models requiring a profile. No credentials or requests are used here.
Trait Implementations§
Source§impl Clone for BedrockModelDescriptor
impl Clone for BedrockModelDescriptor
impl Copy for BedrockModelDescriptor
Source§impl Debug for BedrockModelDescriptor
impl Debug for BedrockModelDescriptor
Auto Trait Implementations§
impl Freeze for BedrockModelDescriptor
impl RefUnwindSafe for BedrockModelDescriptor
impl Send for BedrockModelDescriptor
impl Sync for BedrockModelDescriptor
impl Unpin for BedrockModelDescriptor
impl UnsafeUnpin for BedrockModelDescriptor
impl UnwindSafe for BedrockModelDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more