slack

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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 New

func New(opts ...Option) *Agent

New creates a new Slack Search Agent instance

func (*Agent) Configure

func (a *Agent) Configure(ctx context.Context) error

Configure implements interfaces.Tool

func (*Agent) Flags

func (a *Agent) Flags() []cli.Flag

Flags returns CLI flags for this agent

func (*Agent) Helper

func (a *Agent) Helper() *cli.Command

Helper implements interfaces.Tool

func (*Agent) ID

func (a *Agent) ID() string

ID implements SubAgent interface

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) IsEnabled

func (a *Agent) IsEnabled() bool

IsEnabled returns true if the agent is configured and initialized

func (*Agent) LogValue

func (a *Agent) LogValue() slog.Value

LogValue implements interfaces.Tool

func (*Agent) Name

func (a *Agent) Name() string

Name implements interfaces.Tool

func (*Agent) Prompt

func (a *Agent) Prompt(ctx context.Context) (string, error)

Prompt implements interfaces.Tool Returns basic description for system prompt

func (*Agent) Run

func (a *Agent) Run(ctx context.Context, name string, args map[string]any) (map[string]any, error)

Run implements gollem.ToolSet

func (*Agent) SetSlackClient

func (a *Agent) SetSlackClient(client interfaces.SlackClient)

SetSlackClient sets the Slack client

func (*Agent) Specs

func (a *Agent) Specs(ctx context.Context) ([]gollem.ToolSpec, error)

Specs implements gollem.ToolSet

type Option

type Option func(*Agent)

Option is a functional option for configuring Agent

func WithLLMClient

func WithLLMClient(client gollem.LLMClient) Option

WithLLMClient sets the LLM client

func WithMemoryService

func WithMemoryService(svc *memory.Service) Option

WithMemoryService sets the memory service

func WithSlackClient

func WithSlackClient(client interfaces.SlackClient) Option

WithSlackClient sets the Slack client

Jump to

Keyboard shortcuts

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