pub struct AnthropicBedrockConfig {
pub region: Option<String>,
pub endpoint_url: Option<String>,
pub credentials_provider: Option<SharedCredentialsProvider>,
pub sdk_config: Option<SdkConfig>,
pub request_timeout: Option<Duration>,
pub api_key: Option<String>,
}Expand description
Routes an AnthropicModel to Claude on Amazon Bedrock’s InvokeModel API
(AnthropicBedrock).
Passed to AnthropicModel::bedrock. The AWS SDK for Rust resolves credentials, region and
endpoint, signs and retries, as it does for BedrockModel.
Fields§
§region: Option<String>AWS region of the Bedrock endpoint; wins over sdk_config and the environment. Without one,
the shared AWS config’s region, else us-west-2.
endpoint_url: Option<String>Endpoint URL override, such as a VPC endpoint. Defaults to ANTHROPIC_BEDROCK_BASE_URL;
without either, the AWS SDK resolves it (including AWS_ENDPOINT_URL_BEDROCK_RUNTIME and
AWS_ENDPOINT_URL).
credentials_provider: Option<SharedCredentialsProvider>Credentials provider, replacing the default chain. This AWS SDK type is part of the public API as an escape hatch.
sdk_config: Option<SdkConfig>Shared AWS configuration to build the client from instead of loading the default chain. This AWS SDK type is part of the public API as an escape hatch.
request_timeout: Option<Duration>Time each attempt may take until the response arrives, and the stream inactivity before a
request is aborted. Default DEFAULT_REQUEST_TIMEOUT.
api_key: Option<String>Amazon Bedrock API key: requests use bearer token authentication instead of SigV4. Without
one, the AWS SDK reads AWS_BEARER_TOKEN_BEDROCK.
Implementations§
Source§impl AnthropicBedrockConfig
impl AnthropicBedrockConfig
Sourcepub fn builder() -> AnthropicBedrockConfigBuilder
pub fn builder() -> AnthropicBedrockConfigBuilder
Create an instance of AnthropicBedrockConfig using the builder syntax
Trait Implementations§
Source§impl Clone for AnthropicBedrockConfig
impl Clone for AnthropicBedrockConfig
Source§impl Debug for AnthropicBedrockConfig
impl Debug for AnthropicBedrockConfig
Auto Trait Implementations§
impl !RefUnwindSafe for AnthropicBedrockConfig
impl !UnwindSafe for AnthropicBedrockConfig
impl Freeze for AnthropicBedrockConfig
impl Send for AnthropicBedrockConfig
impl Sync for AnthropicBedrockConfig
impl Unpin for AnthropicBedrockConfig
impl UnsafeUnpin for AnthropicBedrockConfig
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
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> ⓘ
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> ⓘ
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 more