runner

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

Jump to

Keyboard shortcuts

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