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) Tools ¶
func (c *ComputerTool) Tools() []llm.Tool
Click to show internal directories.
Click to hide internal directories.