Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var RunsKept = 200
RunsKept is how many runs are kept per agent (set from agents.runs_kept).
Functions ¶
This section is empty.
Types ¶
type AgentRunner ¶
type AgentRunner struct {
// contains filtered or unexported fields
}
AgentRunner executes agentic workflows.
func NewAgentRunner ¶
func NewAgentRunner() *AgentRunner
NewAgentRunner creates a new, clean instance of the AgentRunner.
func (*AgentRunner) HandleAgentJob ¶
func (r *AgentRunner) HandleAgentJob(ctx context.Context, data []byte) error
HandleAgentJob is the entry point for processing jobs from the 'agents' queue.
func (*AgentRunner) Run ¶ added in v0.5.0
func (r *AgentRunner) Run(ctx context.Context, payload jobs.AgentJobPayload, attempt int) error
Run executes one job and records it as a run. It returns an error only when the job should be retried.