View Source Spooks.SpooksAgentRunner (Spooks Agentic Workflow Engine v0.1.1)

The SpooksAgentsRunner module is responsible for running agentic workflows.

Summary

Functions

Returns a specification to start this module under a supervisor.

Checks for jobs that need to be killed ON THIS NODE and tries to kill them.

Starts the SpooksAgentsRunner task with the provided options. This task should be run on each node.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

arg is passed as the argument to Task.start_link/1 in the :start field of the spec.

For more information, see the Supervisor module, the Supervisor.child_spec/2 function and the Supervisor.child_spec/0 type.

run(workflow_module_name, repo, llm, check_time_in_minutes, checkpoints_enabled)

Checks for jobs that need to be killed ON THIS NODE and tries to kill them.

start_link(opts)

Starts the SpooksAgentsRunner task with the provided options. This task should be run on each node.

The repo is required for agents that save their state to checkpoints. The run time is the number of seconds between checks for agents to run. It is OPTIONAL and defaults to 60 minutes.