Skip to content
Pyrula

Agents

An agent turn is expensive and it touches real systems. Tokens cost money, and a tool call charges a card or sends an email. Losing the process partway through should not mean paying for those twice.

pyrula.agents runs agents on the durable workflow engine, so a turn interrupted halfway resumes from where it stopped: completed LLM calls and tool calls are replayed from the journal instead of re-issued. You write agents and tools, stream their output, and serve them over HTTP; the durability comes from the engine underneath.

from pyrula.agents.decorators.agent import agent
from pyrula.agents.decorators.tool import tool

Start with the Quickstart to define an agent and prove a crash resumes without re-running work. For the execution model agents inherit (runs, replay, suspend points), read the Workflows concepts.