Documentation
¶
Overview ¶
Package agent provides base agent functionality for building AI agents.
Index ¶
- type BaseAgent
- func (ba *BaseAgent) Close() error
- func (ba *BaseAgent) FetchURL(ctx context.Context, url string, maxSizeMB int) (string, error)
- func (ba *BaseAgent) GetProviderInfo() string
- func (ba *BaseAgent) LogError(format string, args ...interface{})
- func (ba *BaseAgent) LogInfo(format string, args ...interface{})
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseAgent ¶
type BaseAgent struct {
Cfg *config.Config
Client *http.Client
Model model.LLM
ModelFactory *llm.ModelFactory
Name string
}
BaseAgent provides common functionality for all agents.
func NewBaseAgent ¶
NewBaseAgent creates a new base agent with LLM initialization.
func NewBaseAgentSecure ¶
func NewBaseAgentSecure(ctx context.Context, name string, timeoutSec int, opts ...config.SecureConfigOption) (*BaseAgent, *config.SecureConfig, error)
NewBaseAgentSecure creates a base agent with VaultGuard security checks.
func (*BaseAgent) GetProviderInfo ¶
GetProviderInfo returns information about the LLM provider.
Click to show internal directories.
Click to hide internal directories.