Dagger.AgentState (dagger v1.0.0-beta.19)

Copy Markdown View Source

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

t()

@type t() :: :IDLE | :RUNNING | :WAITING_INPUT | :PAUSED | :STOPPED | :FAILED

Functions

failed()

@spec failed() :: :FAILED

The loop failed; snapshot holds the completed prefix. Resume retries.

idle()

@spec idle() :: :IDLE

Mailbox empty, turn complete; blocked in receive.

paused()

@spec paused() :: :PAUSED

Mailbox accepting but not draining, until resume.

running()

@spec running() :: :RUNNING

A model request or tool evaluation is in flight.

stopped()

@spec stopped() :: :STOPPED

Runtime released; snapshot remains readable.

waiting_input()

@spec waiting_input() :: :WAITING_INPUT

Blocked on input from the user.