Use this recipe when you want more than a one-shot text request:Documentation Index
Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
Use this file to discover all available pages before exploring further.
- multi-step tool loops
- local runtime tools
- resumable runs
- a single gateway-backed entrypoint for agent work
1. Install the SDKs
2. Define one small runtime tool
Keep the first tool deterministic and easy to inspect.3. Create the agent
4. Use the gateway-backed adapter
5. What persists between steps
Each completed step updates returned run state with:- the run id
- the message history
- any returned tool calls
- any local tool results
- the final output when the run completes
continueRun() later.
6. When to keep the first version simple
- one agent per workflow
- application-owned serialization before any cross-request resume flow
- a small tool list before generic tool registries
- one log line per run with the run id and gateway request id
7. When to move beyond this recipe
Move past the first durable loop when you need:- approval pauses
- application-owned persistence for returned run state
- multiple agent definitions with shared runtime tools