Library 12-Factor Agents

6. Launch/Pause/Resume with simple APIs

Author
HumanLayer (Dex Horthy)
Licence
CC BY-SA 4.0 (text), Apache-2.0 (code)
Source file
content/factor-06-launch-pause-resume.md
Commit
d20c728
Supports
22

Share-alike: this text is licensed CC BY-SA 4.0. Anything adapted from it must credit the author and be released under the same licence. Code samples are Apache-2.0.

Vendored text from humanlayer/12-factor-agents, shown unchanged except that MDX components and import lines are removed and relative links point at GitHub. Not our writing.

Agents are just programs, and we have things we expect from how to launch, query, resume, and stop them.

pause-resume animation

GIF Version

pause-resume animation

It should be easy for users, apps, pipelines, and other agents to launch an agent with a simple API.

Agents and their orchestrating deterministic code should be able to pause an agent when a long-running operation is needed.

External triggers like webhooks should enable agents to resume from where they left off without deep integration with the agent orchestrator.

Closely related to factor 5 - unify execution state and business state and factor 8 - own your control flow, but can be implemented independently.

Note - often AI orchestrators will allow for pause and resume, but not between the moment of tool selection and tool execution. See also factor 7 - contact humans with tool calls and factor 11 - trigger from anywhere, meet users where they are.

← Unify Execution State | Contact Humans With Tools →

esc

Narrow with repo:jm layer:eval q:naive mine · ↑↓ to move, enter to open