anthropic

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package anthropic adapts Anthropic Messages APIs to enno.Provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIKey    string
	Model     string
	MaxTokens int64
	// MaxHTTPRetries overrides the SDK HTTP retry count when positive (option.WithMaxRetries).
	// Zero selects defaultHTTPMaxRetries.
	MaxHTTPRetries int
	// HTTPProxy is an optional proxy URL (http(s):// or socks5://). Empty uses SDK default (environment proxy vars still apply).
	HTTPProxy string
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Provider, error)

func (*Provider) Complete

func (p *Provider) Complete(ctx context.Context, req enno.Request) (enno.Response, error)

Jump to

Keyboard shortcuts

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