Documentation
¶
Overview ¶
Package bedrock implements analyzer.LLMClient against Anthropic Claude models hosted on AWS Bedrock, calling bedrock-runtime InvokeModel directly over net/http with a hand-rolled SigV4 signature
Index ¶
Constants ¶
const ( // DefaultModel is the Bedrock model id used when config does not name // one - Anthropic's current Sonnet, matching the direct-API default DefaultModel = "anthropic.claude-sonnet-5-v1:0" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an analyzer.LLMClient backed by Bedrock's InvokeModel API
func New ¶
New builds a client. cfg.Model defaults to DefaultModel. cfg.BaseURL, if set, overrides the bedrock-runtime endpoint (tests point it at an httptest.Server)
func (*Client) Capabilities ¶
func (c *Client) Capabilities() analyzer.ModelCapabilities
func (*Client) Complete ¶
func (c *Client) Complete(ctx context.Context, req analyzer.LLMRequest) (analyzer.LLMResponse, error)
Complete invokes the model. The scanned content only ever reaches req.System / req.User; nothing here grants the model tools, network or filesystem access beyond the InvokeModel call itself.