bedrock

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

func New(cfg llm.Config) *Client

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

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.

func (*Client) Model

func (c *Client) Model() string

func (*Client) Name

func (c *Client) Name() string

Jump to

Keyboard shortcuts

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