bedrock

package
v0.32.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL