Agents API
The agents API tracks Claude invocations within executions.Contract
- Sync: All methods are synchronous.
- Return shape: snake_case fields with
Datetimestamps. - Status:
pending | running | completed | failed | cancelled.
Methods
start
Log the start of an agent.complete
Mark agent as complete.structuredResult is stored as result_structured in the database.