bedrock

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 1

README

Bedrock

  • Install the AWS CLI
  • Log in with aws login

To see available models, run:

aws bedrock list-inference-profiles --region us-east-1

Documentation

Overview

Package bedrock provides an implementation of the fantasy AI SDK for AWS Bedrock's language models.

Index

Constants

View Source
const (
	// Name is the name of the Bedrock provider.
	Name = "bedrock"
)

Variables

This section is empty.

Functions

func New

func New(opts ...Option) (fantasy.Provider, error)

New creates a new Bedrock provider with the given options.

Types

type Option

type Option = func(*options)

Option defines a function that configures Bedrock provider options.

func WithAPIKey

func WithAPIKey(apiKey string) Option

WithAPIKey sets the access token for the Bedrock provider.

func WithBaseURL added in v0.16.0

func WithBaseURL(baseURL string) Option

WithBaseURL sets the base URL for the Bedrock provider.

func WithHTTPClient

func WithHTTPClient(client option.HTTPClient) Option

WithHTTPClient sets the HTTP client for the Bedrock provider.

func WithHeaders

func WithHeaders(headers map[string]string) Option

WithHeaders sets the headers for the Bedrock provider.

func WithRegion added in v0.26.0

func WithRegion(region string) Option

WithRegion sets the AWS region for the Bedrock provider.

func WithSkipAuth

func WithSkipAuth(skipAuth bool) Option

WithSkipAuth configures whether to skip authentication for the Bedrock provider.

func WithUserAgent added in v0.12.0

func WithUserAgent(ua string) Option

WithUserAgent sets an explicit User-Agent header, overriding the default and any value set via WithHeaders.

Jump to

Keyboard shortcuts

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