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 ¶
Types ¶
type Option ¶
type Option = func(*options)
Option defines a function that configures Bedrock provider options.
func WithAPIKey ¶
WithAPIKey sets the access token for the Bedrock provider.
func WithBaseURL ¶ added in v0.16.0
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 ¶
WithHeaders sets the headers for the Bedrock provider.
func WithRegion ¶ added in v0.26.0
WithRegion sets the AWS region for the Bedrock provider.
func WithSkipAuth ¶
WithSkipAuth configures whether to skip authentication for the Bedrock provider.
func WithUserAgent ¶ added in v0.12.0
WithUserAgent sets an explicit User-Agent header, overriding the default and any value set via WithHeaders.
Click to show internal directories.
Click to hide internal directories.