Documentation
¶
Overview ¶
Package bedrock is a provider for AWS Bedrock via the unified Converse API. It is shaped exactly like the vertex package: credentials are optional (a stored JSON blob of static AWS keys, or empty → the ambient aws-sdk default chain: env / profile / IAM role / IMDS), and the region is parsed from the backend `--url` (https://bedrock-runtime.<region>.amazonaws.com), mirroring how vertex parses project/location from its URL.
Unlike the other providers, the wire format is not hand-rolled JSON: the AWS SDK owns signing, HTTP, retries, and (for streaming) the binary event-stream framing. The Bedrock-specific "codec" is therefore a neutral<->SDK-typed mapper (see converse.go), not a bytes codec.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBedrockProvider ¶
func NewBedrockProvider(region, credBlob, modelName string, cap modelrepo.CapabilityConfig, httpClient *http.Client, tracker libtracker.ActivityTracker) modelrepo.Provider
NewBedrockProvider returns a modelrepo.Provider for an AWS Bedrock model via the Converse API. credBlob is optional static-credentials JSON; empty falls back to the ambient AWS credential chain.
Types ¶
This section is empty.