anthropic

package
v0.0.0-...-3a5371b Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

View Source
const (
	StopEndTurn   anthropicStopReason = "end_turn"
	StopMaxTokens anthropicStopReason = "max_tokens"
	StopSequence  anthropicStopReason = "stop_sequence"
	StopToolUse   anthropicStopReason = "tool_use"
)
View Source
const ProviderName = "anthropic"

Variables

View Source
var (
	ErrAPIKeyRequired error = errors.New("api key is required")
)
View Source
var UserAgent *string = ptrify(useragent.HTTPUserAgent)

Functions

This section is empty.

Types

type AnthropicProvider

type AnthropicProvider struct {
}
var Provider AnthropicProvider

func (AnthropicProvider) NewLLMClient

func (AnthropicProvider) NewLLMClient(ctx context.Context, configs ...pconf.Config) (provider.LLMClient, error)

Jump to

Keyboard shortcuts

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