bedrock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package bedrock provides a stub implementation when built without the bedrock tag. To enable AWS Bedrock support, build with: go build -tags bedrock

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LLMResponse

type LLMResponse = protocoltypes.LLMResponse

type Message

type Message = protocoltypes.Message

type Option

type Option func(*providerConfig)

Option is a no-op when Bedrock is not enabled.

func WithBaseEndpoint

func WithBaseEndpoint(endpoint string) Option

WithBaseEndpoint is a no-op when Bedrock is not enabled.

func WithProfile

func WithProfile(profile string) Option

WithProfile is a no-op when Bedrock is not enabled.

func WithRegion

func WithRegion(region string) Option

WithRegion is a no-op when Bedrock is not enabled.

func WithRequestTimeout

func WithRequestTimeout(timeout time.Duration) Option

WithRequestTimeout is a no-op when Bedrock is not enabled.

type Provider

type Provider struct{}

Provider is a stub that returns an error when Bedrock support is not compiled in.

func NewProvider

func NewProvider(ctx context.Context, opts ...Option) (*Provider, error)

NewProvider returns an error indicating Bedrock support is not compiled in.

func (*Provider) Chat

func (p *Provider) Chat(
	ctx context.Context,
	messages []Message,
	tools []ToolDefinition,
	model string,
	options map[string]any,
) (*LLMResponse, error)

Chat returns an error - this should never be called since NewProvider fails.

func (*Provider) GetDefaultModel

func (p *Provider) GetDefaultModel() string

GetDefaultModel returns an empty string.

type ToolDefinition

type ToolDefinition = protocoltypes.ToolDefinition

Jump to

Keyboard shortcuts

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