| Example | Description |
|---|---|
| Background Evals Example | Run one AgentAsJudgeEval post-hook synchronously and another in the background in AgentOS. |
| Background Hooks Decorator | Opt individual hooks into background execution with @hook(run_in_background=True), leaving other post-hooks in the normal flow. |
| Background Hooks Example | Enable AgentOS-wide background hooks with run_hooks_in_background=True so all pre- and post-hooks run after the API response is sent. |
| Background Hooks Team | Attach a non-blocking post-hook to a researcher/writer Team that logs run id and content length after the response is sent. |
| Background Hooks Workflow | Run per-step agent post-hooks in the background across an analyzer/summarizer Workflow served by AgentOS. |
| Background Output Evaluation | Use a validator agent to evaluate the main agent’s output as a background task. |
| Evals Demo | Register an AccuracyEval for a calculator agent backed by PostgresDb and browse eval runs through the AgentOS eval endpoints. |
Background Tasks
Background Tasks
Post-hooks, evals, and validator agents run as non-blocking FastAPI background tasks in AgentOS.