Documentation
¶
Index ¶
- type AgentWrapper
- type BaseAgent
- func (ba *BaseAgent) Close() error
- func (ba *BaseAgent) Debug(msg string, args ...any)
- func (ba *BaseAgent) Error(msg string, args ...any)
- func (ba *BaseAgent) FetchURL(ctx context.Context, url string, maxSizeMB int) (string, error)
- func (ba *BaseAgent) GetProviderInfo() string
- func (ba *BaseAgent) Info(msg string, args ...any)
- func (ba *BaseAgent) Warn(msg string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentWrapper ¶
AgentWrapper wraps common agent initialization patterns
func NewAgentWrapper ¶
func NewAgentWrapper(base *BaseAgent, adkAgent agent.Agent) *AgentWrapper
NewAgentWrapper creates a wrapper with both base functionality and ADK agent
type BaseAgent ¶
type BaseAgent struct {
Cfg *config.Config
Client *http.Client
Model model.LLM
ModelFactory *llm.ModelFactory
Logger *slog.Logger
}
BaseAgent provides common functionality for all agents
func NewBaseAgent ¶
NewBaseAgent creates a new base agent with LLM initialization
func NewBaseAgentWithLogger ¶ added in v0.5.0
func NewBaseAgentWithLogger(ctx context.Context, cfg *config.Config, timeoutSec int, logger *slog.Logger) (*BaseAgent, error)
NewBaseAgentWithLogger creates a new base agent with an explicit logger
func (*BaseAgent) Close ¶ added in v0.5.0
Close cleans up resources including flushing observability data
func (*BaseAgent) GetProviderInfo ¶
GetProviderInfo returns information about the LLM provider
Click to show internal directories.
Click to hide internal directories.