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 ¶
WithBaseEndpoint is a no-op when Bedrock is not enabled.
func WithProfile ¶
WithProfile is a no-op when Bedrock is not enabled.
func WithRegion ¶
WithRegion is a no-op when Bedrock is not enabled.
func WithRequestTimeout ¶
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 ¶
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 ¶
GetDefaultModel returns an empty string.
type ToolDefinition ¶
type ToolDefinition = protocoltypes.ToolDefinition