EXPERIMENTAL: Agent APIs are likely to change.
Computed lifecycle state of an agent.
Summary
Functions
The loop failed; snapshot holds the completed prefix. Resume retries.
Mailbox empty, turn complete; blocked in receive.
Mailbox accepting but not draining, until resume.
A model request or tool evaluation is in flight.
Runtime released; snapshot remains readable.
Blocked on input from the user.
Types
Functions
@spec failed() :: :FAILED
The loop failed; snapshot holds the completed prefix. Resume retries.
@spec idle() :: :IDLE
Mailbox empty, turn complete; blocked in receive.
@spec paused() :: :PAUSED
Mailbox accepting but not draining, until resume.
@spec running() :: :RUNNING
A model request or tool evaluation is in flight.
@spec stopped() :: :STOPPED
Runtime released; snapshot remains readable.
@spec waiting_input() :: :WAITING_INPUT
Blocked on input from the user.