@erdoai/cli 0.122.0 → 0.124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1720,6 +1720,7 @@ var ErdoClient = class {
|
|
|
1720
1720
|
// --- agent runs ---
|
|
1721
1721
|
listAgentRuns(opts) {
|
|
1722
1722
|
const params = new URLSearchParams();
|
|
1723
|
+
if (opts.invocation) params.set("invocation_id", opts.invocation);
|
|
1723
1724
|
if (opts.agent) params.set("agent_key", opts.agent);
|
|
1724
1725
|
if (opts.thread) params.set("thread_id", opts.thread);
|
|
1725
1726
|
if (opts.status) params.set("status", opts.status);
|
|
@@ -4190,7 +4191,7 @@ agentCmd.command("messages <threadId>").description("Show a thread's messages (r
|
|
|
4190
4191
|
}
|
|
4191
4192
|
});
|
|
4192
4193
|
var runsCmd = program.command("runs").description("Inspect agent runs");
|
|
4193
|
-
runsCmd.command("list").description("List agent runs
|
|
4194
|
+
runsCmd.command("list").description("List agent runs; select an exact invocation, optionally constrained by agent OR thread").option("--invocation <id>", "select the exact root run for an invocation").option("-a, --agent <key>", "filter by agent key").option("-t, --thread <id>", "filter to a thread").option("-s, --status <status>", "filter by status (running, completed, failed, cancelled, pending)").option("-l, --limit <n>", "max runs", (v) => parseInt(v, 10)).action(async (opts) => {
|
|
4194
4195
|
try {
|
|
4195
4196
|
const { runs } = await new ErdoClient().listAgentRuns(opts);
|
|
4196
4197
|
for (const r of runs) console.log(`${r.id} ${r.status} ${r.agent_key}`);
|