Skip to Content
Levain LabsLevain Labs

get_agent_queue

Show an agent's turn in progress and the runs waiting behind it. Use it to answer why a run hasn't started: each queued run says what started it, the run it…

Show an agent's turn in progress and the runs waiting behind it.

Use it to answer why a run hasn't started: each queued run says what started it, the run it waits behind (the turn in progress, or the run a busy self-hosted runtime is serving, which may have ended without the runtime letting go) and its place in line, in the order the runs will start. A run a trigger started while the agent's model account was at its limit waits here too, and says when it tries again. Accepts an agent id or slug.

Parameters

NameTypeRequiredDescription
agent_idstringyes

On this page