Documentation
¶
Index ¶
- type Agent
- func (a *Agent) Configure(ctx context.Context) error
- func (a *Agent) Flags() []cli.Flag
- func (a *Agent) Helper() *cli.Command
- func (a *Agent) ID() string
- func (a *Agent) Init(ctx context.Context, llmClient gollem.LLMClient, memoryService *memory.Service) (bool, error)
- func (a *Agent) IsEnabled() bool
- func (a *Agent) LogValue() slog.Value
- func (a *Agent) Name() string
- func (a *Agent) Prompt(ctx context.Context) (string, error)
- func (a *Agent) Run(ctx context.Context, name string, args map[string]any) (map[string]any, error)
- func (a *Agent) SetSlackClient(client interfaces.SlackClient)
- func (a *Agent) Specs(ctx context.Context) ([]gollem.ToolSpec, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent represents a Slack Search Sub-Agent
func (*Agent) Init ¶
func (a *Agent) Init(ctx context.Context, llmClient gollem.LLMClient, memoryService *memory.Service) (bool, error)
Init initializes the agent with LLM client and memory service. Returns (true, nil) if initialized successfully, (false, nil) if not configured, or (false, error) on error.
func (*Agent) Prompt ¶
Prompt implements interfaces.Tool Returns basic description for system prompt
func (*Agent) SetSlackClient ¶
func (a *Agent) SetSlackClient(client interfaces.SlackClient)
SetSlackClient sets the Slack client
type Option ¶
type Option func(*Agent)
Option is a functional option for configuring Agent
func WithLLMClient ¶
WithLLMClient sets the LLM client
func WithMemoryService ¶
WithMemoryService sets the memory service
func WithSlackClient ¶
func WithSlackClient(client interfaces.SlackClient) Option
WithSlackClient sets the Slack client
Click to show internal directories.
Click to hide internal directories.