@parcha/agentrun-client 0.1.0-beta.42 → 0.1.0-beta.44
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.
|
@@ -157,7 +157,7 @@ export type DefinitionInput = {
|
|
|
157
157
|
strong?: string;
|
|
158
158
|
};
|
|
159
159
|
thinking?: "low" | "medium" | "high" | "xhigh" | "max";
|
|
160
|
-
harness?:
|
|
160
|
+
harness?: string;
|
|
161
161
|
place?: {
|
|
162
162
|
mode: "runner";
|
|
163
163
|
} | {
|
|
@@ -258,6 +258,12 @@ export type DefinitionInput = {
|
|
|
258
258
|
compile_after?: number;
|
|
259
259
|
agree_min?: number;
|
|
260
260
|
alone_min?: number;
|
|
261
|
+
audit_every?: number;
|
|
262
|
+
audit_every_later?: number;
|
|
263
|
+
audit_later_after?: number;
|
|
264
|
+
hold_window?: number;
|
|
265
|
+
hold_disagree?: number;
|
|
266
|
+
stop_window?: number;
|
|
261
267
|
};
|
|
262
268
|
checkout?: "pull_request" | "none";
|
|
263
269
|
};
|
|
@@ -470,6 +476,8 @@ export type Cost = {
|
|
|
470
476
|
so_far_usd?: number;
|
|
471
477
|
unpriced?: number;
|
|
472
478
|
upper_bound?: true;
|
|
479
|
+
learning_usd?: number | null;
|
|
480
|
+
all_in_usd?: number | null;
|
|
473
481
|
plan?: {
|
|
474
482
|
requests: number;
|
|
475
483
|
tokens: number;
|
|
@@ -541,6 +549,7 @@ export type RunCreateInline = {
|
|
|
541
549
|
effort?: Effort;
|
|
542
550
|
max_cost_usd?: number;
|
|
543
551
|
quote_id?: string;
|
|
552
|
+
model_key?: string;
|
|
544
553
|
mcp_auth?: Record<string, {
|
|
545
554
|
headers: Record<string, string>;
|
|
546
555
|
}>;
|
|
@@ -746,6 +755,8 @@ export type Run = {
|
|
|
746
755
|
id: string;
|
|
747
756
|
firing_key: string;
|
|
748
757
|
} | null;
|
|
758
|
+
audit_of?: string | null;
|
|
759
|
+
path?: "agent" | "handed_back" | "workflow" | "replay" | "audit" | null;
|
|
749
760
|
};
|
|
750
761
|
export type RunResult = {
|
|
751
762
|
output: unknown;
|
|
@@ -767,6 +778,7 @@ export type RunFile = {
|
|
|
767
778
|
};
|
|
768
779
|
export type MessageCreate = {
|
|
769
780
|
content: string;
|
|
781
|
+
model_key?: string;
|
|
770
782
|
mcp_auth?: Record<string, {
|
|
771
783
|
headers: Record<string, string>;
|
|
772
784
|
}>;
|
|
@@ -785,6 +797,7 @@ export type RunCreate = {
|
|
|
785
797
|
effort?: Effort;
|
|
786
798
|
max_cost_usd?: number;
|
|
787
799
|
quote_id?: string;
|
|
800
|
+
model_key?: string;
|
|
788
801
|
mcp_auth?: Record<string, {
|
|
789
802
|
headers: Record<string, string>;
|
|
790
803
|
}>;
|
|
@@ -945,7 +958,13 @@ export type Capabilities = {
|
|
|
945
958
|
allow: Array<string>;
|
|
946
959
|
};
|
|
947
960
|
harnesses?: Array<{
|
|
948
|
-
id:
|
|
961
|
+
id: string;
|
|
962
|
+
label: string;
|
|
963
|
+
promises: {
|
|
964
|
+
resume: "exact" | "load" | "restart";
|
|
965
|
+
tool_gate: "every_call" | "permission" | "config";
|
|
966
|
+
billing: "proxy" | "plan";
|
|
967
|
+
};
|
|
949
968
|
available: boolean;
|
|
950
969
|
free_models: Array<{
|
|
951
970
|
id: string;
|
|
@@ -972,7 +991,7 @@ export type Capabilities = {
|
|
|
972
991
|
available: boolean;
|
|
973
992
|
reason?: string;
|
|
974
993
|
missing?: Array<string>;
|
|
975
|
-
harnesses: Array<
|
|
994
|
+
harnesses: Array<string>;
|
|
976
995
|
providers?: Array<string>;
|
|
977
996
|
provider?: string;
|
|
978
997
|
default_provider?: string;
|
|
@@ -1341,7 +1360,7 @@ export type GetAgentArchilResponse = {
|
|
|
1341
1360
|
disk_id: string;
|
|
1342
1361
|
} | null;
|
|
1343
1362
|
};
|
|
1344
|
-
/** The self-learning loop's own record: each compile turn
|
|
1363
|
+
/** The self-learning loop's own record: each compile turn (GET /agents/{agent_id}/learning/loop). */
|
|
1345
1364
|
export type GetLearningLoopResponse = {
|
|
1346
1365
|
agent: string;
|
|
1347
1366
|
completed_runs: number;
|
|
@@ -1360,25 +1379,6 @@ export type GetLearningLoopResponse = {
|
|
|
1360
1379
|
draft_errors: Array<string>;
|
|
1361
1380
|
withheld: boolean;
|
|
1362
1381
|
}>;
|
|
1363
|
-
guards: Array<{
|
|
1364
|
-
workflow: string;
|
|
1365
|
-
digest: string;
|
|
1366
|
-
node: string;
|
|
1367
|
-
signal: "self" | "jev" | "both";
|
|
1368
|
-
threshold: number | null;
|
|
1369
|
-
runs: number;
|
|
1370
|
-
escalated: number;
|
|
1371
|
-
right: number;
|
|
1372
|
-
wrong: number;
|
|
1373
|
-
grades_past: number;
|
|
1374
|
-
replays: number;
|
|
1375
|
-
points: Array<{
|
|
1376
|
-
run_id: string;
|
|
1377
|
-
p: number | null;
|
|
1378
|
-
escalated: boolean;
|
|
1379
|
-
correct: boolean | null;
|
|
1380
|
-
}>;
|
|
1381
|
-
}>;
|
|
1382
1382
|
};
|
|
1383
1383
|
/** Read a native connection (GET /agents/{agent_id}/native). */
|
|
1384
1384
|
export type GetNativeResponse = {
|
|
@@ -1424,6 +1424,25 @@ export interface ListAgentsParams {
|
|
|
1424
1424
|
archived?: boolean;
|
|
1425
1425
|
}
|
|
1426
1426
|
export type ListAgentsResponse = AgentList;
|
|
1427
|
+
/** The audit ledger of the agent's serving learned workflows (GET /agents/{agent_id}/learning/audits). */
|
|
1428
|
+
export type ListLearningAuditsResponse = {
|
|
1429
|
+
agent: string;
|
|
1430
|
+
audits: Array<{
|
|
1431
|
+
run: string;
|
|
1432
|
+
shadow_run: string | null;
|
|
1433
|
+
workflow: string;
|
|
1434
|
+
digest: string;
|
|
1435
|
+
promoted_at: string | null;
|
|
1436
|
+
source: "shadow" | "grade";
|
|
1437
|
+
agreed: boolean | null;
|
|
1438
|
+
served_cost: number | null;
|
|
1439
|
+
shadow_cost: number | null;
|
|
1440
|
+
at: string;
|
|
1441
|
+
turn?: string;
|
|
1442
|
+
skipped?: "no allowance";
|
|
1443
|
+
parked?: true;
|
|
1444
|
+
}>;
|
|
1445
|
+
};
|
|
1427
1446
|
/** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
|
|
1428
1447
|
export type ListLearningPromotionsResponse = {
|
|
1429
1448
|
agent: string;
|
|
@@ -1431,8 +1450,7 @@ export type ListLearningPromotionsResponse = {
|
|
|
1431
1450
|
workflow: string;
|
|
1432
1451
|
digest: string;
|
|
1433
1452
|
at: string;
|
|
1434
|
-
decided: "promote" | "hold" | "replaying"
|
|
1435
|
-
source: "check" | "replay" | "dry_run" | "refit" | "graded";
|
|
1453
|
+
decided: "promote" | "hold" | "replaying";
|
|
1436
1454
|
reason: string;
|
|
1437
1455
|
check?: {
|
|
1438
1456
|
compile_after: number;
|
|
@@ -1450,6 +1468,7 @@ export type ListLearningPromotionsResponse = {
|
|
|
1450
1468
|
failed: number;
|
|
1451
1469
|
skipped_write: number;
|
|
1452
1470
|
};
|
|
1471
|
+
unstarted?: number;
|
|
1453
1472
|
skipped_tools?: Array<{
|
|
1454
1473
|
tool: string;
|
|
1455
1474
|
inputs: number;
|
|
@@ -1465,50 +1484,90 @@ export type ListLearningPromotionsResponse = {
|
|
|
1465
1484
|
}>;
|
|
1466
1485
|
stopped?: true;
|
|
1467
1486
|
};
|
|
1468
|
-
replay?: {
|
|
1469
|
-
n: number;
|
|
1470
|
-
agree: number;
|
|
1471
|
-
agent_acc: number;
|
|
1472
|
-
wf_acc: number;
|
|
1473
|
-
delta: number;
|
|
1474
|
-
handed_back: number;
|
|
1475
|
-
of?: Array<string>;
|
|
1476
|
-
cost_usd?: number | null;
|
|
1477
|
-
skipped_tools?: Array<{
|
|
1478
|
-
tool: string;
|
|
1479
|
-
inputs: number;
|
|
1480
|
-
no_read_only_hint: boolean;
|
|
1481
|
-
}>;
|
|
1482
|
-
outcomes?: {
|
|
1483
|
-
answered: number;
|
|
1484
|
-
handed_back: number;
|
|
1485
|
-
failed: number;
|
|
1486
|
-
skipped_write: number;
|
|
1487
|
-
};
|
|
1488
|
-
};
|
|
1489
1487
|
runs?: Array<string>;
|
|
1490
1488
|
inputs?: Array<string>;
|
|
1491
1489
|
replay_id?: string;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1490
|
+
commit?: string;
|
|
1491
|
+
audit?: {
|
|
1492
|
+
window: number;
|
|
1493
|
+
disagree: number;
|
|
1494
|
+
rows: number;
|
|
1495
|
+
disagreements: Array<{
|
|
1496
|
+
run: string;
|
|
1497
|
+
served: string;
|
|
1498
|
+
input: string;
|
|
1499
|
+
agent: string | null;
|
|
1500
|
+
draft: string | null;
|
|
1501
|
+
graded?: true;
|
|
1500
1502
|
}>;
|
|
1503
|
+
stopped?: true;
|
|
1501
1504
|
};
|
|
1502
|
-
checked?: number;
|
|
1503
|
-
since?: number;
|
|
1504
|
-
held_on?: Array<string>;
|
|
1505
|
-
commit?: string;
|
|
1506
|
-
skipped_by?: string;
|
|
1507
1505
|
}>;
|
|
1508
1506
|
serving: Array<{
|
|
1509
1507
|
workflow: string;
|
|
1510
1508
|
digest: string | null;
|
|
1511
1509
|
replaying: string | null;
|
|
1510
|
+
state: "serving" | "checking" | "held" | "stopped";
|
|
1511
|
+
check: {
|
|
1512
|
+
n: number;
|
|
1513
|
+
agreed: number;
|
|
1514
|
+
alone: number;
|
|
1515
|
+
attempt: 1 | 2;
|
|
1516
|
+
} | null;
|
|
1517
|
+
audit: {
|
|
1518
|
+
window: number;
|
|
1519
|
+
disagree: number;
|
|
1520
|
+
rows: number;
|
|
1521
|
+
disagreed: number;
|
|
1522
|
+
} | null;
|
|
1523
|
+
audits_off: string | null;
|
|
1524
|
+
not_auditable: number;
|
|
1525
|
+
champion: {
|
|
1526
|
+
digest: string;
|
|
1527
|
+
commit: string | null;
|
|
1528
|
+
nodes: Array<{
|
|
1529
|
+
path: string;
|
|
1530
|
+
kind: string;
|
|
1531
|
+
label: string;
|
|
1532
|
+
tier: "fast" | "agent" | null;
|
|
1533
|
+
checks: Array<{
|
|
1534
|
+
on: "when" | "until";
|
|
1535
|
+
predicate: Record<string, unknown>;
|
|
1536
|
+
}>;
|
|
1537
|
+
}> | null;
|
|
1538
|
+
check: {
|
|
1539
|
+
compile_after: number;
|
|
1540
|
+
agree_min: number;
|
|
1541
|
+
alone_min: number;
|
|
1542
|
+
attempt: 1 | 2;
|
|
1543
|
+
n?: number;
|
|
1544
|
+
agreed?: number;
|
|
1545
|
+
alone?: number;
|
|
1546
|
+
of?: Array<string>;
|
|
1547
|
+
cost_usd?: number | null;
|
|
1548
|
+
outcomes?: {
|
|
1549
|
+
answered: number;
|
|
1550
|
+
handed_back: number;
|
|
1551
|
+
failed: number;
|
|
1552
|
+
skipped_write: number;
|
|
1553
|
+
};
|
|
1554
|
+
unstarted?: number;
|
|
1555
|
+
skipped_tools?: Array<{
|
|
1556
|
+
tool: string;
|
|
1557
|
+
inputs: number;
|
|
1558
|
+
no_read_only_hint: boolean;
|
|
1559
|
+
}>;
|
|
1560
|
+
disagreements?: Array<{
|
|
1561
|
+
run: string;
|
|
1562
|
+
input: string;
|
|
1563
|
+
agent: string | null;
|
|
1564
|
+
draft?: string;
|
|
1565
|
+
escalated?: string;
|
|
1566
|
+
failed?: true;
|
|
1567
|
+
}>;
|
|
1568
|
+
stopped?: true;
|
|
1569
|
+
} | null;
|
|
1570
|
+
} | null;
|
|
1512
1571
|
}>;
|
|
1513
1572
|
};
|
|
1514
1573
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
@@ -2054,7 +2113,7 @@ export type GetLearningCostResponse = {
|
|
|
2054
2113
|
n: number;
|
|
2055
2114
|
run_id: string;
|
|
2056
2115
|
started_at: string;
|
|
2057
|
-
path: "agent" | "handed_back" | "workflow" | "replay";
|
|
2116
|
+
path: "agent" | "handed_back" | "workflow" | "replay" | "audit";
|
|
2058
2117
|
workflow: string | null;
|
|
2059
2118
|
learned_revision: string | null;
|
|
2060
2119
|
cost_usd: number | null;
|
|
@@ -2107,8 +2166,55 @@ export type GetLearningCostResponse = {
|
|
|
2107
2166
|
workflow_pct: number;
|
|
2108
2167
|
agent_pct: number;
|
|
2109
2168
|
cleared: boolean;
|
|
2169
|
+
agreed: number;
|
|
2170
|
+
alone: number;
|
|
2171
|
+
agree_min: number;
|
|
2110
2172
|
} | null;
|
|
2111
2173
|
};
|
|
2174
|
+
bill: {
|
|
2175
|
+
baseline: {
|
|
2176
|
+
runs: number;
|
|
2177
|
+
mean_usd: number;
|
|
2178
|
+
} | null;
|
|
2179
|
+
promoted: {
|
|
2180
|
+
n: number;
|
|
2181
|
+
run_id: string;
|
|
2182
|
+
at: string;
|
|
2183
|
+
} | null;
|
|
2184
|
+
points: Array<{
|
|
2185
|
+
n: number;
|
|
2186
|
+
run_id: string;
|
|
2187
|
+
actual_usd: number;
|
|
2188
|
+
agent_usd: number | null;
|
|
2189
|
+
}>;
|
|
2190
|
+
break_even: {
|
|
2191
|
+
n: number;
|
|
2192
|
+
run_id: string;
|
|
2193
|
+
} | null;
|
|
2194
|
+
gap_usd: number | null;
|
|
2195
|
+
withheld: number;
|
|
2196
|
+
booked_usd: number;
|
|
2197
|
+
revisions: Array<{
|
|
2198
|
+
workflow: string;
|
|
2199
|
+
digest: string;
|
|
2200
|
+
compile_usd: number | null;
|
|
2201
|
+
check_usd: number | null;
|
|
2202
|
+
spend_usd: number | null;
|
|
2203
|
+
k: number;
|
|
2204
|
+
served: number;
|
|
2205
|
+
attributed_usd: number | null;
|
|
2206
|
+
unattributed_usd: number | null;
|
|
2207
|
+
state: "checking" | "serving" | "stopped";
|
|
2208
|
+
}>;
|
|
2209
|
+
unattributed_usd: number | null;
|
|
2210
|
+
holds: Array<{
|
|
2211
|
+
n: number | null;
|
|
2212
|
+
at: string;
|
|
2213
|
+
workflow: string;
|
|
2214
|
+
by: "audit" | "check" | "dsl";
|
|
2215
|
+
reason: string;
|
|
2216
|
+
}>;
|
|
2217
|
+
};
|
|
2112
2218
|
};
|
|
2113
2219
|
/** The agent's eval records: the latest, and every one kept, newest first (GET /agents/{agent_id}/learning/evals). */
|
|
2114
2220
|
export type ListLearningEvalsResponse = {
|
|
@@ -2531,6 +2637,7 @@ export type ListComposioEventsResponse = {
|
|
|
2531
2637
|
description: string;
|
|
2532
2638
|
config: Record<string, unknown>;
|
|
2533
2639
|
polled: boolean;
|
|
2640
|
+
sealed: Array<string>;
|
|
2534
2641
|
instructions?: string;
|
|
2535
2642
|
}>;
|
|
2536
2643
|
};
|
|
@@ -3340,7 +3447,7 @@ export type GradeRunResponse = {
|
|
|
3340
3447
|
correct: boolean;
|
|
3341
3448
|
source: "feedback" | "eval";
|
|
3342
3449
|
graded_at: string;
|
|
3343
|
-
path: "agent" | "handed_back" | "workflow" | "replay";
|
|
3450
|
+
path: "agent" | "handed_back" | "workflow" | "replay" | "audit";
|
|
3344
3451
|
workflow: string | null;
|
|
3345
3452
|
workflow_digest: string | null;
|
|
3346
3453
|
feedback: "look_back" | null;
|
|
@@ -3519,7 +3626,7 @@ export type GetRunLearningResponse = {
|
|
|
3519
3626
|
correct: boolean;
|
|
3520
3627
|
source: "feedback" | "eval";
|
|
3521
3628
|
graded_at: string;
|
|
3522
|
-
path: "agent" | "handed_back" | "workflow" | "replay";
|
|
3629
|
+
path: "agent" | "handed_back" | "workflow" | "replay" | "audit";
|
|
3523
3630
|
workflow: string | null;
|
|
3524
3631
|
workflow_digest: string | null;
|
|
3525
3632
|
feedback: "look_back" | null;
|
|
@@ -3713,9 +3820,9 @@ export type StartSdkRunResponse = {
|
|
|
3713
3820
|
export type GetCapabilitiesResponse = Capabilities;
|
|
3714
3821
|
/** Whether this server can serve (GET /health). */
|
|
3715
3822
|
export type GetHealthResponse = {
|
|
3716
|
-
status: "ok" | "failing";
|
|
3823
|
+
status: "ok" | "failing" | "warming";
|
|
3717
3824
|
checks: {
|
|
3718
|
-
store: "ok" | "does_not_open";
|
|
3825
|
+
store: "ok" | "does_not_open" | "opening";
|
|
3719
3826
|
disk: "ok" | "below_floor" | "cannot_check";
|
|
3720
3827
|
};
|
|
3721
3828
|
};
|
|
@@ -4264,6 +4371,7 @@ export type CreateTriggerBody = {
|
|
|
4264
4371
|
}>;
|
|
4265
4372
|
}>;
|
|
4266
4373
|
instance_id?: string;
|
|
4374
|
+
sealed_config?: Array<string>;
|
|
4267
4375
|
hook?: string;
|
|
4268
4376
|
move_subscription?: true;
|
|
4269
4377
|
} | {
|
|
@@ -4395,6 +4503,7 @@ export type CreateTriggerResponse = {
|
|
|
4395
4503
|
}>;
|
|
4396
4504
|
}>;
|
|
4397
4505
|
instance_id?: string;
|
|
4506
|
+
sealed_config?: Array<string>;
|
|
4398
4507
|
hook?: string;
|
|
4399
4508
|
move_subscription?: true;
|
|
4400
4509
|
} | {
|
|
@@ -4625,6 +4734,7 @@ export type GetTriggerResponse = {
|
|
|
4625
4734
|
}>;
|
|
4626
4735
|
}>;
|
|
4627
4736
|
instance_id?: string;
|
|
4737
|
+
sealed_config?: Array<string>;
|
|
4628
4738
|
hook?: string;
|
|
4629
4739
|
move_subscription?: true;
|
|
4630
4740
|
} | {
|
|
@@ -4805,6 +4915,7 @@ export type ListTriggersResponse = {
|
|
|
4805
4915
|
}>;
|
|
4806
4916
|
}>;
|
|
4807
4917
|
instance_id?: string;
|
|
4918
|
+
sealed_config?: Array<string>;
|
|
4808
4919
|
hook?: string;
|
|
4809
4920
|
move_subscription?: true;
|
|
4810
4921
|
} | {
|
|
@@ -4989,6 +5100,7 @@ export type UpdateTriggerBody = {
|
|
|
4989
5100
|
}>;
|
|
4990
5101
|
}>;
|
|
4991
5102
|
instance_id?: string;
|
|
5103
|
+
sealed_config?: Array<string>;
|
|
4992
5104
|
hook?: string;
|
|
4993
5105
|
move_subscription?: true;
|
|
4994
5106
|
} | {
|
|
@@ -5117,6 +5229,7 @@ export type UpdateTriggerResponse = {
|
|
|
5117
5229
|
}>;
|
|
5118
5230
|
}>;
|
|
5119
5231
|
instance_id?: string;
|
|
5232
|
+
sealed_config?: Array<string>;
|
|
5120
5233
|
hook?: string;
|
|
5121
5234
|
move_subscription?: true;
|
|
5122
5235
|
} | {
|
|
@@ -5363,12 +5476,14 @@ export declare function resources(call: Call): {
|
|
|
5363
5476
|
get: (agentId: string, options?: RequestOptions) => Promise<Tagged<GetAgentResponse>>;
|
|
5364
5477
|
/** The agent's own Archil disk, once its first run made it (GET /agents/{agent_id}/archil). */
|
|
5365
5478
|
getAgentArchil: (agentId: string, options?: RequestOptions) => Promise<GetAgentArchilResponse>;
|
|
5366
|
-
/** The self-learning loop's own record: each compile turn
|
|
5479
|
+
/** The self-learning loop's own record: each compile turn (GET /agents/{agent_id}/learning/loop). */
|
|
5367
5480
|
getLearningLoop: (agentId: string, options?: RequestOptions) => Promise<GetLearningLoopResponse>;
|
|
5368
5481
|
/** Read a native connection (GET /agents/{agent_id}/native). */
|
|
5369
5482
|
getNative: (agentId: string, options?: RequestOptions) => Promise<GetNativeResponse>;
|
|
5370
5483
|
/** List agents (GET /agents). */
|
|
5371
5484
|
list: (params?: ListAgentsParams, options?: RequestOptions) => Promise<ListAgentsResponse>;
|
|
5485
|
+
/** The audit ledger of the agent's serving learned workflows (GET /agents/{agent_id}/learning/audits). */
|
|
5486
|
+
listLearningAudits: (agentId: string, options?: RequestOptions) => Promise<ListLearningAuditsResponse>;
|
|
5372
5487
|
/** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
|
|
5373
5488
|
listLearningPromotions: (agentId: string, options?: RequestOptions) => Promise<ListLearningPromotionsResponse>;
|
|
5374
5489
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
@@ -12,6 +12,7 @@ export const OPERATIONS = {
|
|
|
12
12
|
getLearningLoop: { "method": "GET", "path": "/agents/{agent_id}/learning/loop", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
13
13
|
getNative: { "method": "GET", "path": "/agents/{agent_id}/native", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
14
14
|
listAgents: { "method": "GET", "path": "/agents", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "archived"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
15
|
+
listLearningAudits: { "method": "GET", "path": "/agents/{agent_id}/learning/audits", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
15
16
|
listLearningPromotions: { "method": "GET", "path": "/agents/{agent_id}/learning/promotions", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
16
17
|
listRuns: { "method": "GET", "path": "/agents/{agent_id}/runs", "pathParams": ["agent_id"], "multiSegment": [], "query": ["limit", "cursor", "status", "label"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
17
18
|
unarchiveAgent: { "method": "POST", "path": "/agents/{agent_id}/unarchive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -177,12 +178,14 @@ export function resources(call) {
|
|
|
177
178
|
get: (agentId, options) => call("getAgent", [agentId], undefined, undefined, options),
|
|
178
179
|
/** The agent's own Archil disk, once its first run made it (GET /agents/{agent_id}/archil). */
|
|
179
180
|
getAgentArchil: (agentId, options) => call("getAgentArchil", [agentId], undefined, undefined, options),
|
|
180
|
-
/** The self-learning loop's own record: each compile turn
|
|
181
|
+
/** The self-learning loop's own record: each compile turn (GET /agents/{agent_id}/learning/loop). */
|
|
181
182
|
getLearningLoop: (agentId, options) => call("getLearningLoop", [agentId], undefined, undefined, options),
|
|
182
183
|
/** Read a native connection (GET /agents/{agent_id}/native). */
|
|
183
184
|
getNative: (agentId, options) => call("getNative", [agentId], undefined, undefined, options),
|
|
184
185
|
/** List agents (GET /agents). */
|
|
185
186
|
list: (params, options) => call("listAgents", [], undefined, params, options),
|
|
187
|
+
/** The audit ledger of the agent's serving learned workflows (GET /agents/{agent_id}/learning/audits). */
|
|
188
|
+
listLearningAudits: (agentId, options) => call("listLearningAudits", [agentId], undefined, undefined, options),
|
|
186
189
|
/** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
|
|
187
190
|
listLearningPromotions: (agentId, options) => call("listLearningPromotions", [agentId], undefined, undefined, options),
|
|
188
191
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcha/agentrun-client",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.44",
|
|
4
4
|
"description": "A typed TypeScript client for a self-hosted AgentRun server: a method per operation of its API, typed from its OpenAPI document, with waiting for a run and following its timeline. No dependencies; fetch only.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentrun",
|
|
@@ -75,6 +75,6 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@parcha/agentrun-dsl": "0.1.0-beta.
|
|
78
|
+
"@parcha/agentrun-dsl": "0.1.0-beta.44"
|
|
79
79
|
}
|
|
80
80
|
}
|