Skip to Content
Levain LabsLevain Labs

list_runs

List recent runs in the workspace, newest first. Pass agent_id (an agent id or slug) to list one agent's runs, and status to keep only runs in that status.…

List recent runs in the workspace, newest first.

Pass agent_id (an agent id or slug) to list one agent's runs, and status to keep only runs in that status. limit sets the page size (50 by default, 200 at most); to page back, pass the last run id of the previous page as before. A page shorter than limit is the last, unless it was cut to fit: when the runs would not fit one tool result the reply is an object instead, the first runs in runs, truncated true, and next_before; call again with the same arguments and before set to next_before to read the rest. A queued run carries queue: what it waits for and its place in line.

Parameters

NameTypeRequiredDescription
agent_idstringno
limitintegerno
beforestringno
statusstringno

On this page