Expose agents as services reachable from any interface. With Factors 5, 6, 7, and 11, you’ll persist unified state in a database, orchestrate runs via background tasks and REST endpoints, and add pause/resume controls. Wire human responses back into waiting workflows and decouple triggers from UI so web apps, bots, and systems can launch, monitor, and resume runs at scale.
Overview
Syllabus
- Unit 1: Launching Agents with RESTful APIs
- Building Your Agents First REST Endpoint
- Running the Agent Before Responding
- Non Blocking Agent Launch with BackgroundTasks
- Polling Agent Progress with State Lookup
- Unit 2: Persisting States with Databases and Callbacks
- Saving Agent State to SQLite
- Reading Agent State from SQLite
- Database Driven Background Agent Execution
- Progress Callbacks and Resume Budget
- Unit 3: Pausing and Resuming Agents Through API Calls
- Cooperative Pause Signal in Progress Callback
- Building the Pause API Endpoint
- Resuming Paused Agents Through the API
- Unit 4: Integrating Human Input Back to Agents
- When Agents Need Answers
- Routing Human Answers Back to Agents
- Unit 5: Triggering Agents from Anywhere
- Your Agent Meets the Real World