Documentation
¶
Index ¶
- type AnthropicLLMProvider
- func (a *AnthropicLLMProvider) Call(ctx context.Context, req provider.LLMRequest) (*provider.LLMResult, *provider.LLMError)
- func (a *AnthropicLLMProvider) Name() string
- func (a *AnthropicLLMProvider) Stream(ctx context.Context, req provider.LLMRequest, onChunk func(string)) (*provider.LLMResult, *provider.LLMError)
- func (a *AnthropicLLMProvider) Validate(ctx context.Context) error
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 ¶
func (a *AnthropicLLMProvider) Call(ctx context.Context, req provider.LLMRequest) (*provider.LLMResult, *provider.LLMError)
Call makes a non-streaming LLM request
func (*AnthropicLLMProvider) Name ¶
func (a *AnthropicLLMProvider) Name() string
Name returns the provider name
Click to show internal directories.
Click to hide internal directories.