anthropic

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnthropicLLMProvider

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

AnthropicLLMProvider implements the LLMProvider interface for Anthropic Claude

func NewAnthropicLLMProvider

func NewAnthropicLLMProvider(apiKey, model, fallbackModel string) (*AnthropicLLMProvider, error)

NewAnthropicLLMProvider creates a new Anthropic LLM provider

func (*AnthropicLLMProvider) Call

Call makes a non-streaming LLM request

func (*AnthropicLLMProvider) Name

func (a *AnthropicLLMProvider) Name() string

Name returns the provider name

func (*AnthropicLLMProvider) Stream

Stream makes a streaming LLM request

func (*AnthropicLLMProvider) Validate

func (a *AnthropicLLMProvider) Validate(ctx context.Context) error

Validate tests the provider connection

Jump to

Keyboard shortcuts

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