pub struct BedrockMantleConfig {
pub region: Option<String>,
pub credentials_provider: Option<SharedCredentialsProvider>,
pub expires_in: Option<Duration>,
}Expand description
Routes an OpenAIModel through Amazon Bedrock’s Mantle endpoint (BedrockMantleConfig).
Passed to OpenAIModel::bedrock_mantle, which sets the client’s base URL and API key from
it.
Fields§
§region: Option<String>AWS region of the Mantle endpoint. Defaults to AWS_REGION, else AWS_DEFAULT_REGION;
building the model fails when none is set.
credentials_provider: Option<SharedCredentialsProvider>Credentials the bearer tokens are signed with, replacing the default AWS credential chain.
This AWS SDK type is part of the public API as an escape hatch; wrap static
Credentials with SharedCredentialsProvider::new.
expires_in: Option<Duration>Bearer token lifetime, at most 12 hours, which is also the default.
Implementations§
Source§impl BedrockMantleConfig
impl BedrockMantleConfig
Sourcepub fn builder() -> BedrockMantleConfigBuilder
pub fn builder() -> BedrockMantleConfigBuilder
Create an instance of BedrockMantleConfig using the builder syntax
Trait Implementations§
Source§impl Clone for BedrockMantleConfig
impl Clone for BedrockMantleConfig
Source§impl Debug for BedrockMantleConfig
impl Debug for BedrockMantleConfig
Auto Trait Implementations§
impl !RefUnwindSafe for BedrockMantleConfig
impl !UnwindSafe for BedrockMantleConfig
impl Freeze for BedrockMantleConfig
impl Send for BedrockMantleConfig
impl Sync for BedrockMantleConfig
impl Unpin for BedrockMantleConfig
impl UnsafeUnpin for BedrockMantleConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.