anthropic

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginTitle   = "rtp-agent.plugins.anthropic"
	PluginVersion = "1.5.15"
	PluginPackage = "rtp-agent.plugins.anthropic"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnthropicLLM

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

func NewAnthropicLLM

func NewAnthropicLLM(apiKey string, model string, opts ...AnthropicOption) (*AnthropicLLM, error)

func (*AnthropicLLM) Chat

func (l *AnthropicLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)

func (*AnthropicLLM) Model added in v0.0.15

func (l *AnthropicLLM) Model() string

func (*AnthropicLLM) Provider added in v0.0.15

func (l *AnthropicLLM) Provider() string

type AnthropicOption added in v0.0.15

type AnthropicOption func(*AnthropicLLM)

func WithAnthropicBaseURL added in v0.0.15

func WithAnthropicBaseURL(baseURL string) AnthropicOption

type ComputerTool

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

func NewComputerTool

func NewComputerTool(actions *browser.PageActions, width int, height int) *ComputerTool

func (*ComputerTool) Execute

func (c *ComputerTool) Execute(ctx context.Context, action string, args map[string]interface{}) ([]map[string]interface{}, error)

func (*ComputerTool) Tools

func (c *ComputerTool) Tools() []llm.Tool

Jump to

Keyboard shortcuts

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