Documentation
¶
Overview ¶
Package trigger provides scheduled and event-driven agent invocation.
The scheduler component uses cron expressions to trigger agents on a schedule without external HTTP requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentInvoker ¶
AgentInvoker is a function that invokes an agent with optional input.
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler manages scheduled agent invocations.
func NewScheduler ¶
func NewScheduler(invoker AgentInvoker) *Scheduler
NewScheduler creates a new scheduler.
func (*Scheduler) RegisterAgent ¶
func (s *Scheduler) RegisterAgent(agentName string, ag agent.Agent, cfg *config.TriggerConfig) error
RegisterAgent registers an agent's trigger with the scheduler.
Click to show internal directories.
Click to hide internal directories.