IntermediateHazelJS
Agent runtime
The component that executes agent steps, mediates tools, enforces budgets, and persists run state.
- Authors
- editorial-team
- Published
- Last reviewed
Direct answer
The component that executes agent steps, mediates tools, enforces budgets, and persists run state.
Plain language
The engine room that actually runs the agent loop safely.
Technical explanation
HazelJS AgentRuntime: scheduling steps, ToolExecutor validation, timeouts, checkpoints/leases, stop reasons, optional loop stages, and emitting traces; distinct from prompt-only frameworks.
Example
A worker claims a run lease, AgentRuntime executes the next @Tool, checkpoints the AgentRun, and releases.