@effect-agent/storage-cloudflare 0.1.0-beta.84 → 0.1.0-beta.85
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/DoMemoryStore.mjs +1 -1
- package/dist/DoMemoryStore.mjs.map +1 -1
- package/dist/DoMessageDeliveryStore.mjs +1 -1
- package/dist/DoScheduleStore.mjs +2 -2
- package/dist/DoScheduleStore.mjs.map +1 -1
- package/dist/DoSubmissionLedger.mjs +32 -32
- package/dist/DoSubmissionLedger.mjs.map +1 -1
- package/dist/DoSubscriptionStore.mjs +1 -1
- package/dist/DoSubscriptionStore.mjs.map +1 -1
- package/dist/DoThreadStore.mjs +22 -22
- package/dist/DoThreadStore.mjs.map +1 -1
- package/dist/MemoryProtocol.mjs +1 -1
- package/dist/MemoryProtocol.mjs.map +1 -1
- package/dist/PortProtocol.d.mts +933 -336
- package/dist/{do-journal-DHqCQeBU.mjs → do-journal-C18d6Yu0.mjs} +3 -3
- package/dist/do-journal-C18d6Yu0.mjs.map +1 -0
- package/package.json +1 -1
- package/src/DoMemoryStore.ts +1 -1
- package/src/DoScheduleStore.ts +2 -2
- package/src/DoSubmissionLedger.ts +61 -61
- package/src/DoSubscriptionStore.ts +1 -1
- package/src/DoThreadStore.ts +32 -34
- package/src/MemoryProtocol.ts +1 -1
- package/src/internal/do-journal.ts +2 -2
- package/dist/do-journal-DHqCQeBU.mjs.map +0 -1
package/dist/PortProtocol.d.mts
CHANGED
|
@@ -252,6 +252,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
252
252
|
readonly createdAtMillis: number;
|
|
253
253
|
readonly expiresAtMillis: number;
|
|
254
254
|
readonly reporting?: {
|
|
255
|
+
readonly mode?: "standard" | undefined;
|
|
255
256
|
readonly sourceDigests: {
|
|
256
257
|
readonly agent: string;
|
|
257
258
|
readonly model: string;
|
|
@@ -265,6 +266,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
265
266
|
readonly createdAtMillis: number;
|
|
266
267
|
readonly sourceSubmissionId?: string | undefined;
|
|
267
268
|
readonly deliveryPrincipal?: string | undefined;
|
|
269
|
+
readonly reportKind?: "update" | undefined;
|
|
268
270
|
} | undefined;
|
|
269
271
|
readonly messageAdmission?: {
|
|
270
272
|
readonly schemaVersion: 1;
|
|
@@ -285,6 +287,75 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
285
287
|
readonly ownerThreadId: string;
|
|
286
288
|
readonly messageId: string;
|
|
287
289
|
} | undefined;
|
|
290
|
+
} | {
|
|
291
|
+
readonly _tag: "WorkerCompletion";
|
|
292
|
+
readonly budgetExhausted: boolean;
|
|
293
|
+
readonly schemaVersion: 1;
|
|
294
|
+
readonly report: {
|
|
295
|
+
readonly _tag: "Settled";
|
|
296
|
+
readonly worker: {
|
|
297
|
+
readonly schemaVersion: 1;
|
|
298
|
+
readonly delegationId: string;
|
|
299
|
+
readonly targetAgentId: string;
|
|
300
|
+
readonly threadId: string;
|
|
301
|
+
};
|
|
302
|
+
readonly receipt: {
|
|
303
|
+
readonly receiptId: string;
|
|
304
|
+
readonly submissionId: string;
|
|
305
|
+
readonly threadId: string;
|
|
306
|
+
readonly queueSequence: number;
|
|
307
|
+
};
|
|
308
|
+
readonly runId: string;
|
|
309
|
+
readonly settlementId: string;
|
|
310
|
+
readonly outcome: "completed";
|
|
311
|
+
readonly result: Schema.Json;
|
|
312
|
+
} | {
|
|
313
|
+
readonly _tag: "Settled";
|
|
314
|
+
readonly worker: {
|
|
315
|
+
readonly schemaVersion: 1;
|
|
316
|
+
readonly delegationId: string;
|
|
317
|
+
readonly targetAgentId: string;
|
|
318
|
+
readonly threadId: string;
|
|
319
|
+
};
|
|
320
|
+
readonly receipt: {
|
|
321
|
+
readonly receiptId: string;
|
|
322
|
+
readonly submissionId: string;
|
|
323
|
+
readonly threadId: string;
|
|
324
|
+
readonly queueSequence: number;
|
|
325
|
+
};
|
|
326
|
+
readonly runId: string;
|
|
327
|
+
readonly settlementId: string;
|
|
328
|
+
readonly outcome: "aborted" | "failed";
|
|
329
|
+
readonly failure: {
|
|
330
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
331
|
+
readonly delegationId: string;
|
|
332
|
+
readonly targetAgentId: string;
|
|
333
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
334
|
+
readonly childThreadId?: string | undefined;
|
|
335
|
+
readonly childSubmissionId?: string | undefined;
|
|
336
|
+
readonly childRunId?: string | undefined;
|
|
337
|
+
readonly errorTag: string;
|
|
338
|
+
readonly message: string;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
} | {
|
|
342
|
+
readonly _tag: "WorkerUpdate";
|
|
343
|
+
readonly schemaVersion: 1;
|
|
344
|
+
readonly worker: {
|
|
345
|
+
readonly schemaVersion: 1;
|
|
346
|
+
readonly delegationId: string;
|
|
347
|
+
readonly targetAgentId: string;
|
|
348
|
+
readonly threadId: string;
|
|
349
|
+
};
|
|
350
|
+
readonly update: {
|
|
351
|
+
readonly schemaVersion: 1;
|
|
352
|
+
readonly agentId: string;
|
|
353
|
+
readonly threadId: string;
|
|
354
|
+
readonly runId: string;
|
|
355
|
+
readonly updateId: string;
|
|
356
|
+
readonly sequence: number;
|
|
357
|
+
readonly value: Schema.Json;
|
|
358
|
+
};
|
|
288
359
|
} | undefined;
|
|
289
360
|
readonly admissionGroup?: string | undefined;
|
|
290
361
|
readonly admissionFence?: {
|
|
@@ -350,10 +421,80 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
350
421
|
readonly createdAt: string;
|
|
351
422
|
readonly deploymentId: string;
|
|
352
423
|
readonly payload: {
|
|
353
|
-
readonly _tag: "
|
|
424
|
+
readonly _tag: "SubmissionSettled";
|
|
354
425
|
readonly submissionId: string;
|
|
355
|
-
readonly
|
|
356
|
-
readonly
|
|
426
|
+
readonly settlementId: string;
|
|
427
|
+
readonly receiptId: string;
|
|
428
|
+
readonly outcome: "aborted" | "completed" | "failed";
|
|
429
|
+
readonly runId?: string | undefined;
|
|
430
|
+
readonly result?: Schema.Json | undefined;
|
|
431
|
+
readonly runDisposition?: Schema.Json | undefined;
|
|
432
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
433
|
+
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
434
|
+
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
435
|
+
readonly usageSummary?: {
|
|
436
|
+
readonly modelCalls: number;
|
|
437
|
+
readonly inputTokens: {
|
|
438
|
+
readonly total: number;
|
|
439
|
+
readonly uncached: number;
|
|
440
|
+
readonly cacheRead: number;
|
|
441
|
+
readonly cacheWrite: number;
|
|
442
|
+
};
|
|
443
|
+
readonly outputTokens: {
|
|
444
|
+
readonly total: number;
|
|
445
|
+
readonly text: number;
|
|
446
|
+
readonly reasoning: number;
|
|
447
|
+
};
|
|
448
|
+
readonly costMicrousd: number;
|
|
449
|
+
readonly byModel: readonly {
|
|
450
|
+
readonly provider: string;
|
|
451
|
+
readonly model: string;
|
|
452
|
+
readonly responseModel?: string | undefined;
|
|
453
|
+
readonly serviceTier?: string | undefined;
|
|
454
|
+
readonly pricingVersion?: string | undefined;
|
|
455
|
+
readonly modelCalls: number;
|
|
456
|
+
readonly inputTokens: {
|
|
457
|
+
readonly total: number;
|
|
458
|
+
readonly uncached: number;
|
|
459
|
+
readonly cacheRead: number;
|
|
460
|
+
readonly cacheWrite: number;
|
|
461
|
+
};
|
|
462
|
+
readonly outputTokens: {
|
|
463
|
+
readonly total: number;
|
|
464
|
+
readonly text: number;
|
|
465
|
+
readonly reasoning: number;
|
|
466
|
+
};
|
|
467
|
+
readonly costMicrousd: number;
|
|
468
|
+
}[];
|
|
469
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
470
|
+
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
471
|
+
readonly unobservedModelCalls?: number | undefined;
|
|
472
|
+
} | undefined;
|
|
473
|
+
readonly uncommittedModelUsage?: readonly {
|
|
474
|
+
readonly provider: string;
|
|
475
|
+
readonly model: string;
|
|
476
|
+
readonly serviceTier?: string | undefined;
|
|
477
|
+
readonly pricingVersion?: string | undefined;
|
|
478
|
+
readonly response?: {
|
|
479
|
+
readonly id?: string | undefined;
|
|
480
|
+
readonly model?: string | undefined;
|
|
481
|
+
} | undefined;
|
|
482
|
+
readonly purpose?: "summary" | "turn" | undefined;
|
|
483
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
484
|
+
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
485
|
+
readonly inputTokens: {
|
|
486
|
+
readonly total: number;
|
|
487
|
+
readonly uncached: number;
|
|
488
|
+
readonly cacheRead: number;
|
|
489
|
+
readonly cacheWrite: number;
|
|
490
|
+
};
|
|
491
|
+
readonly outputTokens: {
|
|
492
|
+
readonly total: number;
|
|
493
|
+
readonly text: number;
|
|
494
|
+
readonly reasoning: number;
|
|
495
|
+
};
|
|
496
|
+
readonly costMicrousd: number;
|
|
497
|
+
}[] | undefined;
|
|
357
498
|
} | {
|
|
358
499
|
readonly _tag: "ThreadCreated";
|
|
359
500
|
readonly agentId: string;
|
|
@@ -387,6 +528,75 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
387
528
|
readonly ownerThreadId: string;
|
|
388
529
|
readonly messageId: string;
|
|
389
530
|
} | undefined;
|
|
531
|
+
} | {
|
|
532
|
+
readonly _tag: "WorkerCompletion";
|
|
533
|
+
readonly budgetExhausted: boolean;
|
|
534
|
+
readonly schemaVersion: 1;
|
|
535
|
+
readonly report: {
|
|
536
|
+
readonly _tag: "Settled";
|
|
537
|
+
readonly worker: {
|
|
538
|
+
readonly schemaVersion: 1;
|
|
539
|
+
readonly delegationId: string;
|
|
540
|
+
readonly targetAgentId: string;
|
|
541
|
+
readonly threadId: string;
|
|
542
|
+
};
|
|
543
|
+
readonly receipt: {
|
|
544
|
+
readonly receiptId: string;
|
|
545
|
+
readonly submissionId: string;
|
|
546
|
+
readonly threadId: string;
|
|
547
|
+
readonly queueSequence: number;
|
|
548
|
+
};
|
|
549
|
+
readonly runId: string;
|
|
550
|
+
readonly settlementId: string;
|
|
551
|
+
readonly outcome: "completed";
|
|
552
|
+
readonly result: Schema.Json;
|
|
553
|
+
} | {
|
|
554
|
+
readonly _tag: "Settled";
|
|
555
|
+
readonly worker: {
|
|
556
|
+
readonly schemaVersion: 1;
|
|
557
|
+
readonly delegationId: string;
|
|
558
|
+
readonly targetAgentId: string;
|
|
559
|
+
readonly threadId: string;
|
|
560
|
+
};
|
|
561
|
+
readonly receipt: {
|
|
562
|
+
readonly receiptId: string;
|
|
563
|
+
readonly submissionId: string;
|
|
564
|
+
readonly threadId: string;
|
|
565
|
+
readonly queueSequence: number;
|
|
566
|
+
};
|
|
567
|
+
readonly runId: string;
|
|
568
|
+
readonly settlementId: string;
|
|
569
|
+
readonly outcome: "aborted" | "failed";
|
|
570
|
+
readonly failure: {
|
|
571
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
572
|
+
readonly delegationId: string;
|
|
573
|
+
readonly targetAgentId: string;
|
|
574
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
575
|
+
readonly childThreadId?: string | undefined;
|
|
576
|
+
readonly childSubmissionId?: string | undefined;
|
|
577
|
+
readonly childRunId?: string | undefined;
|
|
578
|
+
readonly errorTag: string;
|
|
579
|
+
readonly message: string;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
} | {
|
|
583
|
+
readonly _tag: "WorkerUpdate";
|
|
584
|
+
readonly schemaVersion: 1;
|
|
585
|
+
readonly worker: {
|
|
586
|
+
readonly schemaVersion: 1;
|
|
587
|
+
readonly delegationId: string;
|
|
588
|
+
readonly targetAgentId: string;
|
|
589
|
+
readonly threadId: string;
|
|
590
|
+
};
|
|
591
|
+
readonly update: {
|
|
592
|
+
readonly schemaVersion: 1;
|
|
593
|
+
readonly agentId: string;
|
|
594
|
+
readonly threadId: string;
|
|
595
|
+
readonly runId: string;
|
|
596
|
+
readonly updateId: string;
|
|
597
|
+
readonly sequence: number;
|
|
598
|
+
readonly value: Schema.Json;
|
|
599
|
+
};
|
|
390
600
|
} | undefined;
|
|
391
601
|
} | {
|
|
392
602
|
readonly _tag: "RunStarted";
|
|
@@ -530,80 +740,10 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
530
740
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
531
741
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
532
742
|
} | {
|
|
533
|
-
readonly _tag: "
|
|
743
|
+
readonly _tag: "AbortRequested";
|
|
534
744
|
readonly submissionId: string;
|
|
535
|
-
readonly
|
|
536
|
-
readonly
|
|
537
|
-
readonly outcome: "aborted" | "completed" | "failed";
|
|
538
|
-
readonly runId?: string | undefined;
|
|
539
|
-
readonly result?: Schema.Json | undefined;
|
|
540
|
-
readonly runDisposition?: Schema.Json | undefined;
|
|
541
|
-
readonly finishReason?: "budget-exhausted" | undefined;
|
|
542
|
-
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
543
|
-
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
544
|
-
readonly usageSummary?: {
|
|
545
|
-
readonly modelCalls: number;
|
|
546
|
-
readonly inputTokens: {
|
|
547
|
-
readonly total: number;
|
|
548
|
-
readonly uncached: number;
|
|
549
|
-
readonly cacheRead: number;
|
|
550
|
-
readonly cacheWrite: number;
|
|
551
|
-
};
|
|
552
|
-
readonly outputTokens: {
|
|
553
|
-
readonly total: number;
|
|
554
|
-
readonly text: number;
|
|
555
|
-
readonly reasoning: number;
|
|
556
|
-
};
|
|
557
|
-
readonly costMicrousd: number;
|
|
558
|
-
readonly byModel: readonly {
|
|
559
|
-
readonly provider: string;
|
|
560
|
-
readonly model: string;
|
|
561
|
-
readonly responseModel?: string | undefined;
|
|
562
|
-
readonly serviceTier?: string | undefined;
|
|
563
|
-
readonly pricingVersion?: string | undefined;
|
|
564
|
-
readonly modelCalls: number;
|
|
565
|
-
readonly inputTokens: {
|
|
566
|
-
readonly total: number;
|
|
567
|
-
readonly uncached: number;
|
|
568
|
-
readonly cacheRead: number;
|
|
569
|
-
readonly cacheWrite: number;
|
|
570
|
-
};
|
|
571
|
-
readonly outputTokens: {
|
|
572
|
-
readonly total: number;
|
|
573
|
-
readonly text: number;
|
|
574
|
-
readonly reasoning: number;
|
|
575
|
-
};
|
|
576
|
-
readonly costMicrousd: number;
|
|
577
|
-
}[];
|
|
578
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
579
|
-
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
580
|
-
readonly unobservedModelCalls?: number | undefined;
|
|
581
|
-
} | undefined;
|
|
582
|
-
readonly uncommittedModelUsage?: readonly {
|
|
583
|
-
readonly provider: string;
|
|
584
|
-
readonly model: string;
|
|
585
|
-
readonly serviceTier?: string | undefined;
|
|
586
|
-
readonly pricingVersion?: string | undefined;
|
|
587
|
-
readonly response?: {
|
|
588
|
-
readonly id?: string | undefined;
|
|
589
|
-
readonly model?: string | undefined;
|
|
590
|
-
} | undefined;
|
|
591
|
-
readonly purpose?: "summary" | "turn" | undefined;
|
|
592
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
593
|
-
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
594
|
-
readonly inputTokens: {
|
|
595
|
-
readonly total: number;
|
|
596
|
-
readonly uncached: number;
|
|
597
|
-
readonly cacheRead: number;
|
|
598
|
-
readonly cacheWrite: number;
|
|
599
|
-
};
|
|
600
|
-
readonly outputTokens: {
|
|
601
|
-
readonly total: number;
|
|
602
|
-
readonly text: number;
|
|
603
|
-
readonly reasoning: number;
|
|
604
|
-
};
|
|
605
|
-
readonly costMicrousd: number;
|
|
606
|
-
}[] | undefined;
|
|
745
|
+
readonly author: string;
|
|
746
|
+
readonly reason: string;
|
|
607
747
|
} | {
|
|
608
748
|
readonly _tag: "SubagentRequested";
|
|
609
749
|
readonly runId: string;
|
|
@@ -804,6 +944,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
804
944
|
readonly createdAtMillis: number;
|
|
805
945
|
readonly expiresAtMillis: number;
|
|
806
946
|
readonly reporting?: {
|
|
947
|
+
readonly mode?: "standard" | undefined;
|
|
807
948
|
readonly sourceDigests: {
|
|
808
949
|
readonly agent: string;
|
|
809
950
|
readonly model: string;
|
|
@@ -817,6 +958,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
817
958
|
readonly createdAtMillis: number;
|
|
818
959
|
readonly sourceSubmissionId?: string | undefined;
|
|
819
960
|
readonly deliveryPrincipal?: string | undefined;
|
|
961
|
+
readonly reportKind?: "update" | undefined;
|
|
820
962
|
};
|
|
821
963
|
readonly inputDigest: string;
|
|
822
964
|
} | {
|
|
@@ -880,6 +1022,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
880
1022
|
readonly createdAtMillis: number;
|
|
881
1023
|
readonly expiresAtMillis: number;
|
|
882
1024
|
readonly reporting?: {
|
|
1025
|
+
readonly mode?: "standard" | undefined;
|
|
883
1026
|
readonly sourceDigests: {
|
|
884
1027
|
readonly agent: string;
|
|
885
1028
|
readonly model: string;
|
|
@@ -903,6 +1046,30 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
903
1046
|
readonly envelope: Schema.Json;
|
|
904
1047
|
readonly createdAtMillis: number;
|
|
905
1048
|
readonly deadlineAtMillis: number;
|
|
1049
|
+
readonly predecessor?: string | undefined;
|
|
1050
|
+
} | {
|
|
1051
|
+
readonly _tag: "AgentUpdateEmitted";
|
|
1052
|
+
readonly update: {
|
|
1053
|
+
readonly schemaVersion: 1;
|
|
1054
|
+
readonly agentId: string;
|
|
1055
|
+
readonly threadId: string;
|
|
1056
|
+
readonly runId: string;
|
|
1057
|
+
readonly updateId: string;
|
|
1058
|
+
readonly sequence: number;
|
|
1059
|
+
readonly value: Schema.Json;
|
|
1060
|
+
};
|
|
1061
|
+
readonly definitions: {
|
|
1062
|
+
readonly agent: string;
|
|
1063
|
+
readonly model: string;
|
|
1064
|
+
readonly tools: string;
|
|
1065
|
+
};
|
|
1066
|
+
readonly delivery?: {
|
|
1067
|
+
readonly messageId: string;
|
|
1068
|
+
readonly envelope: Schema.Json;
|
|
1069
|
+
readonly createdAtMillis: number;
|
|
1070
|
+
readonly deadlineAtMillis: number;
|
|
1071
|
+
readonly predecessor?: string | undefined;
|
|
1072
|
+
} | undefined;
|
|
906
1073
|
} | {
|
|
907
1074
|
readonly _tag: "WorkerReportRefused";
|
|
908
1075
|
readonly runId: string;
|
|
@@ -963,20 +1130,90 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
963
1130
|
readonly createdAt: string;
|
|
964
1131
|
readonly deploymentId: string;
|
|
965
1132
|
readonly payload: {
|
|
966
|
-
readonly _tag: "
|
|
1133
|
+
readonly _tag: "SubmissionSettled";
|
|
967
1134
|
readonly submissionId: string;
|
|
968
|
-
readonly
|
|
969
|
-
readonly
|
|
970
|
-
|
|
971
|
-
readonly
|
|
972
|
-
readonly
|
|
973
|
-
readonly
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
1135
|
+
readonly settlementId: string;
|
|
1136
|
+
readonly receiptId: string;
|
|
1137
|
+
readonly outcome: "aborted" | "completed" | "failed";
|
|
1138
|
+
readonly runId?: string | undefined;
|
|
1139
|
+
readonly result?: Schema.Json | undefined;
|
|
1140
|
+
readonly runDisposition?: Schema.Json | undefined;
|
|
1141
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
1142
|
+
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
1143
|
+
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
1144
|
+
readonly usageSummary?: {
|
|
1145
|
+
readonly modelCalls: number;
|
|
1146
|
+
readonly inputTokens: {
|
|
1147
|
+
readonly total: number;
|
|
1148
|
+
readonly uncached: number;
|
|
1149
|
+
readonly cacheRead: number;
|
|
1150
|
+
readonly cacheWrite: number;
|
|
1151
|
+
};
|
|
1152
|
+
readonly outputTokens: {
|
|
1153
|
+
readonly total: number;
|
|
1154
|
+
readonly text: number;
|
|
1155
|
+
readonly reasoning: number;
|
|
1156
|
+
};
|
|
1157
|
+
readonly costMicrousd: number;
|
|
1158
|
+
readonly byModel: readonly {
|
|
1159
|
+
readonly provider: string;
|
|
1160
|
+
readonly model: string;
|
|
1161
|
+
readonly responseModel?: string | undefined;
|
|
1162
|
+
readonly serviceTier?: string | undefined;
|
|
1163
|
+
readonly pricingVersion?: string | undefined;
|
|
1164
|
+
readonly modelCalls: number;
|
|
1165
|
+
readonly inputTokens: {
|
|
1166
|
+
readonly total: number;
|
|
1167
|
+
readonly uncached: number;
|
|
1168
|
+
readonly cacheRead: number;
|
|
1169
|
+
readonly cacheWrite: number;
|
|
1170
|
+
};
|
|
1171
|
+
readonly outputTokens: {
|
|
1172
|
+
readonly total: number;
|
|
1173
|
+
readonly text: number;
|
|
1174
|
+
readonly reasoning: number;
|
|
1175
|
+
};
|
|
1176
|
+
readonly costMicrousd: number;
|
|
1177
|
+
}[];
|
|
1178
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1179
|
+
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1180
|
+
readonly unobservedModelCalls?: number | undefined;
|
|
1181
|
+
} | undefined;
|
|
1182
|
+
readonly uncommittedModelUsage?: readonly {
|
|
1183
|
+
readonly provider: string;
|
|
1184
|
+
readonly model: string;
|
|
1185
|
+
readonly serviceTier?: string | undefined;
|
|
1186
|
+
readonly pricingVersion?: string | undefined;
|
|
1187
|
+
readonly response?: {
|
|
1188
|
+
readonly id?: string | undefined;
|
|
1189
|
+
readonly model?: string | undefined;
|
|
1190
|
+
} | undefined;
|
|
1191
|
+
readonly purpose?: "summary" | "turn" | undefined;
|
|
1192
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1193
|
+
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
1194
|
+
readonly inputTokens: {
|
|
1195
|
+
readonly total: number;
|
|
1196
|
+
readonly uncached: number;
|
|
1197
|
+
readonly cacheRead: number;
|
|
1198
|
+
readonly cacheWrite: number;
|
|
1199
|
+
};
|
|
1200
|
+
readonly outputTokens: {
|
|
1201
|
+
readonly total: number;
|
|
1202
|
+
readonly text: number;
|
|
1203
|
+
readonly reasoning: number;
|
|
1204
|
+
};
|
|
1205
|
+
readonly costMicrousd: number;
|
|
1206
|
+
}[] | undefined;
|
|
1207
|
+
} | {
|
|
1208
|
+
readonly _tag: "ThreadCreated";
|
|
1209
|
+
readonly agentId: string;
|
|
1210
|
+
readonly definitions: {
|
|
1211
|
+
readonly agent: string;
|
|
1212
|
+
readonly model: string;
|
|
1213
|
+
readonly tools: string;
|
|
1214
|
+
};
|
|
1215
|
+
} | {
|
|
1216
|
+
readonly _tag: "UserInputRecorded";
|
|
980
1217
|
readonly submissionId?: string | undefined;
|
|
981
1218
|
readonly kind: "follow-up" | "steering" | "user";
|
|
982
1219
|
readonly runId?: string | undefined;
|
|
@@ -1000,6 +1237,75 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
1000
1237
|
readonly ownerThreadId: string;
|
|
1001
1238
|
readonly messageId: string;
|
|
1002
1239
|
} | undefined;
|
|
1240
|
+
} | {
|
|
1241
|
+
readonly _tag: "WorkerCompletion";
|
|
1242
|
+
readonly budgetExhausted: boolean;
|
|
1243
|
+
readonly schemaVersion: 1;
|
|
1244
|
+
readonly report: {
|
|
1245
|
+
readonly _tag: "Settled";
|
|
1246
|
+
readonly worker: {
|
|
1247
|
+
readonly schemaVersion: 1;
|
|
1248
|
+
readonly delegationId: string;
|
|
1249
|
+
readonly targetAgentId: string;
|
|
1250
|
+
readonly threadId: string;
|
|
1251
|
+
};
|
|
1252
|
+
readonly receipt: {
|
|
1253
|
+
readonly receiptId: string;
|
|
1254
|
+
readonly submissionId: string;
|
|
1255
|
+
readonly threadId: string;
|
|
1256
|
+
readonly queueSequence: number;
|
|
1257
|
+
};
|
|
1258
|
+
readonly runId: string;
|
|
1259
|
+
readonly settlementId: string;
|
|
1260
|
+
readonly outcome: "completed";
|
|
1261
|
+
readonly result: Schema.Json;
|
|
1262
|
+
} | {
|
|
1263
|
+
readonly _tag: "Settled";
|
|
1264
|
+
readonly worker: {
|
|
1265
|
+
readonly schemaVersion: 1;
|
|
1266
|
+
readonly delegationId: string;
|
|
1267
|
+
readonly targetAgentId: string;
|
|
1268
|
+
readonly threadId: string;
|
|
1269
|
+
};
|
|
1270
|
+
readonly receipt: {
|
|
1271
|
+
readonly receiptId: string;
|
|
1272
|
+
readonly submissionId: string;
|
|
1273
|
+
readonly threadId: string;
|
|
1274
|
+
readonly queueSequence: number;
|
|
1275
|
+
};
|
|
1276
|
+
readonly runId: string;
|
|
1277
|
+
readonly settlementId: string;
|
|
1278
|
+
readonly outcome: "aborted" | "failed";
|
|
1279
|
+
readonly failure: {
|
|
1280
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
1281
|
+
readonly delegationId: string;
|
|
1282
|
+
readonly targetAgentId: string;
|
|
1283
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
1284
|
+
readonly childThreadId?: string | undefined;
|
|
1285
|
+
readonly childSubmissionId?: string | undefined;
|
|
1286
|
+
readonly childRunId?: string | undefined;
|
|
1287
|
+
readonly errorTag: string;
|
|
1288
|
+
readonly message: string;
|
|
1289
|
+
};
|
|
1290
|
+
};
|
|
1291
|
+
} | {
|
|
1292
|
+
readonly _tag: "WorkerUpdate";
|
|
1293
|
+
readonly schemaVersion: 1;
|
|
1294
|
+
readonly worker: {
|
|
1295
|
+
readonly schemaVersion: 1;
|
|
1296
|
+
readonly delegationId: string;
|
|
1297
|
+
readonly targetAgentId: string;
|
|
1298
|
+
readonly threadId: string;
|
|
1299
|
+
};
|
|
1300
|
+
readonly update: {
|
|
1301
|
+
readonly schemaVersion: 1;
|
|
1302
|
+
readonly agentId: string;
|
|
1303
|
+
readonly threadId: string;
|
|
1304
|
+
readonly runId: string;
|
|
1305
|
+
readonly updateId: string;
|
|
1306
|
+
readonly sequence: number;
|
|
1307
|
+
readonly value: Schema.Json;
|
|
1308
|
+
};
|
|
1003
1309
|
} | undefined;
|
|
1004
1310
|
} | {
|
|
1005
1311
|
readonly _tag: "RunStarted";
|
|
@@ -1143,80 +1449,10 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
1143
1449
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
1144
1450
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
1145
1451
|
} | {
|
|
1146
|
-
readonly _tag: "
|
|
1452
|
+
readonly _tag: "AbortRequested";
|
|
1147
1453
|
readonly submissionId: string;
|
|
1148
|
-
readonly
|
|
1149
|
-
readonly
|
|
1150
|
-
readonly outcome: "aborted" | "completed" | "failed";
|
|
1151
|
-
readonly runId?: string | undefined;
|
|
1152
|
-
readonly result?: Schema.Json | undefined;
|
|
1153
|
-
readonly runDisposition?: Schema.Json | undefined;
|
|
1154
|
-
readonly finishReason?: "budget-exhausted" | undefined;
|
|
1155
|
-
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
1156
|
-
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
1157
|
-
readonly usageSummary?: {
|
|
1158
|
-
readonly modelCalls: number;
|
|
1159
|
-
readonly inputTokens: {
|
|
1160
|
-
readonly total: number;
|
|
1161
|
-
readonly uncached: number;
|
|
1162
|
-
readonly cacheRead: number;
|
|
1163
|
-
readonly cacheWrite: number;
|
|
1164
|
-
};
|
|
1165
|
-
readonly outputTokens: {
|
|
1166
|
-
readonly total: number;
|
|
1167
|
-
readonly text: number;
|
|
1168
|
-
readonly reasoning: number;
|
|
1169
|
-
};
|
|
1170
|
-
readonly costMicrousd: number;
|
|
1171
|
-
readonly byModel: readonly {
|
|
1172
|
-
readonly provider: string;
|
|
1173
|
-
readonly model: string;
|
|
1174
|
-
readonly responseModel?: string | undefined;
|
|
1175
|
-
readonly serviceTier?: string | undefined;
|
|
1176
|
-
readonly pricingVersion?: string | undefined;
|
|
1177
|
-
readonly modelCalls: number;
|
|
1178
|
-
readonly inputTokens: {
|
|
1179
|
-
readonly total: number;
|
|
1180
|
-
readonly uncached: number;
|
|
1181
|
-
readonly cacheRead: number;
|
|
1182
|
-
readonly cacheWrite: number;
|
|
1183
|
-
};
|
|
1184
|
-
readonly outputTokens: {
|
|
1185
|
-
readonly total: number;
|
|
1186
|
-
readonly text: number;
|
|
1187
|
-
readonly reasoning: number;
|
|
1188
|
-
};
|
|
1189
|
-
readonly costMicrousd: number;
|
|
1190
|
-
}[];
|
|
1191
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1192
|
-
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1193
|
-
readonly unobservedModelCalls?: number | undefined;
|
|
1194
|
-
} | undefined;
|
|
1195
|
-
readonly uncommittedModelUsage?: readonly {
|
|
1196
|
-
readonly provider: string;
|
|
1197
|
-
readonly model: string;
|
|
1198
|
-
readonly serviceTier?: string | undefined;
|
|
1199
|
-
readonly pricingVersion?: string | undefined;
|
|
1200
|
-
readonly response?: {
|
|
1201
|
-
readonly id?: string | undefined;
|
|
1202
|
-
readonly model?: string | undefined;
|
|
1203
|
-
} | undefined;
|
|
1204
|
-
readonly purpose?: "summary" | "turn" | undefined;
|
|
1205
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1206
|
-
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
1207
|
-
readonly inputTokens: {
|
|
1208
|
-
readonly total: number;
|
|
1209
|
-
readonly uncached: number;
|
|
1210
|
-
readonly cacheRead: number;
|
|
1211
|
-
readonly cacheWrite: number;
|
|
1212
|
-
};
|
|
1213
|
-
readonly outputTokens: {
|
|
1214
|
-
readonly total: number;
|
|
1215
|
-
readonly text: number;
|
|
1216
|
-
readonly reasoning: number;
|
|
1217
|
-
};
|
|
1218
|
-
readonly costMicrousd: number;
|
|
1219
|
-
}[] | undefined;
|
|
1454
|
+
readonly author: string;
|
|
1455
|
+
readonly reason: string;
|
|
1220
1456
|
} | {
|
|
1221
1457
|
readonly _tag: "SubagentRequested";
|
|
1222
1458
|
readonly runId: string;
|
|
@@ -1417,6 +1653,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
1417
1653
|
readonly createdAtMillis: number;
|
|
1418
1654
|
readonly expiresAtMillis: number;
|
|
1419
1655
|
readonly reporting?: {
|
|
1656
|
+
readonly mode?: "standard" | undefined;
|
|
1420
1657
|
readonly sourceDigests: {
|
|
1421
1658
|
readonly agent: string;
|
|
1422
1659
|
readonly model: string;
|
|
@@ -1430,6 +1667,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
1430
1667
|
readonly createdAtMillis: number;
|
|
1431
1668
|
readonly sourceSubmissionId?: string | undefined;
|
|
1432
1669
|
readonly deliveryPrincipal?: string | undefined;
|
|
1670
|
+
readonly reportKind?: "update" | undefined;
|
|
1433
1671
|
};
|
|
1434
1672
|
readonly inputDigest: string;
|
|
1435
1673
|
} | {
|
|
@@ -1493,6 +1731,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
1493
1731
|
readonly createdAtMillis: number;
|
|
1494
1732
|
readonly expiresAtMillis: number;
|
|
1495
1733
|
readonly reporting?: {
|
|
1734
|
+
readonly mode?: "standard" | undefined;
|
|
1496
1735
|
readonly sourceDigests: {
|
|
1497
1736
|
readonly agent: string;
|
|
1498
1737
|
readonly model: string;
|
|
@@ -1516,6 +1755,30 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
1516
1755
|
readonly envelope: Schema.Json;
|
|
1517
1756
|
readonly createdAtMillis: number;
|
|
1518
1757
|
readonly deadlineAtMillis: number;
|
|
1758
|
+
readonly predecessor?: string | undefined;
|
|
1759
|
+
} | {
|
|
1760
|
+
readonly _tag: "AgentUpdateEmitted";
|
|
1761
|
+
readonly update: {
|
|
1762
|
+
readonly schemaVersion: 1;
|
|
1763
|
+
readonly agentId: string;
|
|
1764
|
+
readonly threadId: string;
|
|
1765
|
+
readonly runId: string;
|
|
1766
|
+
readonly updateId: string;
|
|
1767
|
+
readonly sequence: number;
|
|
1768
|
+
readonly value: Schema.Json;
|
|
1769
|
+
};
|
|
1770
|
+
readonly definitions: {
|
|
1771
|
+
readonly agent: string;
|
|
1772
|
+
readonly model: string;
|
|
1773
|
+
readonly tools: string;
|
|
1774
|
+
};
|
|
1775
|
+
readonly delivery?: {
|
|
1776
|
+
readonly messageId: string;
|
|
1777
|
+
readonly envelope: Schema.Json;
|
|
1778
|
+
readonly createdAtMillis: number;
|
|
1779
|
+
readonly deadlineAtMillis: number;
|
|
1780
|
+
readonly predecessor?: string | undefined;
|
|
1781
|
+
} | undefined;
|
|
1519
1782
|
} | {
|
|
1520
1783
|
readonly _tag: "WorkerReportRefused";
|
|
1521
1784
|
readonly runId: string;
|
|
@@ -1699,6 +1962,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1699
1962
|
readonly createdAtMillis: number;
|
|
1700
1963
|
readonly expiresAtMillis: number;
|
|
1701
1964
|
readonly reporting?: {
|
|
1965
|
+
readonly mode?: "standard" | undefined;
|
|
1702
1966
|
readonly sourceDigests: {
|
|
1703
1967
|
readonly agent: string;
|
|
1704
1968
|
readonly model: string;
|
|
@@ -1712,6 +1976,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1712
1976
|
readonly createdAtMillis: number;
|
|
1713
1977
|
readonly sourceSubmissionId?: string | undefined;
|
|
1714
1978
|
readonly deliveryPrincipal?: string | undefined;
|
|
1979
|
+
readonly reportKind?: "update" | undefined;
|
|
1715
1980
|
} | undefined;
|
|
1716
1981
|
readonly messageAdmission?: {
|
|
1717
1982
|
readonly schemaVersion: 1;
|
|
@@ -1732,6 +1997,75 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1732
1997
|
readonly ownerThreadId: string;
|
|
1733
1998
|
readonly messageId: string;
|
|
1734
1999
|
} | undefined;
|
|
2000
|
+
} | {
|
|
2001
|
+
readonly _tag: "WorkerCompletion";
|
|
2002
|
+
readonly budgetExhausted: boolean;
|
|
2003
|
+
readonly schemaVersion: 1;
|
|
2004
|
+
readonly report: {
|
|
2005
|
+
readonly _tag: "Settled";
|
|
2006
|
+
readonly worker: {
|
|
2007
|
+
readonly schemaVersion: 1;
|
|
2008
|
+
readonly delegationId: string;
|
|
2009
|
+
readonly targetAgentId: string;
|
|
2010
|
+
readonly threadId: string;
|
|
2011
|
+
};
|
|
2012
|
+
readonly receipt: {
|
|
2013
|
+
readonly receiptId: string;
|
|
2014
|
+
readonly submissionId: string;
|
|
2015
|
+
readonly threadId: string;
|
|
2016
|
+
readonly queueSequence: number;
|
|
2017
|
+
};
|
|
2018
|
+
readonly runId: string;
|
|
2019
|
+
readonly settlementId: string;
|
|
2020
|
+
readonly outcome: "completed";
|
|
2021
|
+
readonly result: Schema.Json;
|
|
2022
|
+
} | {
|
|
2023
|
+
readonly _tag: "Settled";
|
|
2024
|
+
readonly worker: {
|
|
2025
|
+
readonly schemaVersion: 1;
|
|
2026
|
+
readonly delegationId: string;
|
|
2027
|
+
readonly targetAgentId: string;
|
|
2028
|
+
readonly threadId: string;
|
|
2029
|
+
};
|
|
2030
|
+
readonly receipt: {
|
|
2031
|
+
readonly receiptId: string;
|
|
2032
|
+
readonly submissionId: string;
|
|
2033
|
+
readonly threadId: string;
|
|
2034
|
+
readonly queueSequence: number;
|
|
2035
|
+
};
|
|
2036
|
+
readonly runId: string;
|
|
2037
|
+
readonly settlementId: string;
|
|
2038
|
+
readonly outcome: "aborted" | "failed";
|
|
2039
|
+
readonly failure: {
|
|
2040
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
2041
|
+
readonly delegationId: string;
|
|
2042
|
+
readonly targetAgentId: string;
|
|
2043
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
2044
|
+
readonly childThreadId?: string | undefined;
|
|
2045
|
+
readonly childSubmissionId?: string | undefined;
|
|
2046
|
+
readonly childRunId?: string | undefined;
|
|
2047
|
+
readonly errorTag: string;
|
|
2048
|
+
readonly message: string;
|
|
2049
|
+
};
|
|
2050
|
+
};
|
|
2051
|
+
} | {
|
|
2052
|
+
readonly _tag: "WorkerUpdate";
|
|
2053
|
+
readonly schemaVersion: 1;
|
|
2054
|
+
readonly worker: {
|
|
2055
|
+
readonly schemaVersion: 1;
|
|
2056
|
+
readonly delegationId: string;
|
|
2057
|
+
readonly targetAgentId: string;
|
|
2058
|
+
readonly threadId: string;
|
|
2059
|
+
};
|
|
2060
|
+
readonly update: {
|
|
2061
|
+
readonly schemaVersion: 1;
|
|
2062
|
+
readonly agentId: string;
|
|
2063
|
+
readonly threadId: string;
|
|
2064
|
+
readonly runId: string;
|
|
2065
|
+
readonly updateId: string;
|
|
2066
|
+
readonly sequence: number;
|
|
2067
|
+
readonly value: Schema.Json;
|
|
2068
|
+
};
|
|
1735
2069
|
} | undefined;
|
|
1736
2070
|
} | undefined;
|
|
1737
2071
|
} | {
|
|
@@ -1830,6 +2164,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1830
2164
|
readonly createdAtMillis: number;
|
|
1831
2165
|
readonly expiresAtMillis: number;
|
|
1832
2166
|
readonly reporting?: {
|
|
2167
|
+
readonly mode?: "standard" | undefined;
|
|
1833
2168
|
readonly sourceDigests: {
|
|
1834
2169
|
readonly agent: string;
|
|
1835
2170
|
readonly model: string;
|
|
@@ -1843,6 +2178,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1843
2178
|
readonly createdAtMillis: number;
|
|
1844
2179
|
readonly sourceSubmissionId?: string | undefined;
|
|
1845
2180
|
readonly deliveryPrincipal?: string | undefined;
|
|
2181
|
+
readonly reportKind?: "update" | undefined;
|
|
1846
2182
|
} | undefined;
|
|
1847
2183
|
readonly messageAdmission?: {
|
|
1848
2184
|
readonly schemaVersion: 1;
|
|
@@ -1863,6 +2199,75 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1863
2199
|
readonly ownerThreadId: string;
|
|
1864
2200
|
readonly messageId: string;
|
|
1865
2201
|
} | undefined;
|
|
2202
|
+
} | {
|
|
2203
|
+
readonly _tag: "WorkerCompletion";
|
|
2204
|
+
readonly budgetExhausted: boolean;
|
|
2205
|
+
readonly schemaVersion: 1;
|
|
2206
|
+
readonly report: {
|
|
2207
|
+
readonly _tag: "Settled";
|
|
2208
|
+
readonly worker: {
|
|
2209
|
+
readonly schemaVersion: 1;
|
|
2210
|
+
readonly delegationId: string;
|
|
2211
|
+
readonly targetAgentId: string;
|
|
2212
|
+
readonly threadId: string;
|
|
2213
|
+
};
|
|
2214
|
+
readonly receipt: {
|
|
2215
|
+
readonly receiptId: string;
|
|
2216
|
+
readonly submissionId: string;
|
|
2217
|
+
readonly threadId: string;
|
|
2218
|
+
readonly queueSequence: number;
|
|
2219
|
+
};
|
|
2220
|
+
readonly runId: string;
|
|
2221
|
+
readonly settlementId: string;
|
|
2222
|
+
readonly outcome: "completed";
|
|
2223
|
+
readonly result: Schema.Json;
|
|
2224
|
+
} | {
|
|
2225
|
+
readonly _tag: "Settled";
|
|
2226
|
+
readonly worker: {
|
|
2227
|
+
readonly schemaVersion: 1;
|
|
2228
|
+
readonly delegationId: string;
|
|
2229
|
+
readonly targetAgentId: string;
|
|
2230
|
+
readonly threadId: string;
|
|
2231
|
+
};
|
|
2232
|
+
readonly receipt: {
|
|
2233
|
+
readonly receiptId: string;
|
|
2234
|
+
readonly submissionId: string;
|
|
2235
|
+
readonly threadId: string;
|
|
2236
|
+
readonly queueSequence: number;
|
|
2237
|
+
};
|
|
2238
|
+
readonly runId: string;
|
|
2239
|
+
readonly settlementId: string;
|
|
2240
|
+
readonly outcome: "aborted" | "failed";
|
|
2241
|
+
readonly failure: {
|
|
2242
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
2243
|
+
readonly delegationId: string;
|
|
2244
|
+
readonly targetAgentId: string;
|
|
2245
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
2246
|
+
readonly childThreadId?: string | undefined;
|
|
2247
|
+
readonly childSubmissionId?: string | undefined;
|
|
2248
|
+
readonly childRunId?: string | undefined;
|
|
2249
|
+
readonly errorTag: string;
|
|
2250
|
+
readonly message: string;
|
|
2251
|
+
};
|
|
2252
|
+
};
|
|
2253
|
+
} | {
|
|
2254
|
+
readonly _tag: "WorkerUpdate";
|
|
2255
|
+
readonly schemaVersion: 1;
|
|
2256
|
+
readonly worker: {
|
|
2257
|
+
readonly schemaVersion: 1;
|
|
2258
|
+
readonly delegationId: string;
|
|
2259
|
+
readonly targetAgentId: string;
|
|
2260
|
+
readonly threadId: string;
|
|
2261
|
+
};
|
|
2262
|
+
readonly update: {
|
|
2263
|
+
readonly schemaVersion: 1;
|
|
2264
|
+
readonly agentId: string;
|
|
2265
|
+
readonly threadId: string;
|
|
2266
|
+
readonly runId: string;
|
|
2267
|
+
readonly updateId: string;
|
|
2268
|
+
readonly sequence: number;
|
|
2269
|
+
readonly value: Schema.Json;
|
|
2270
|
+
};
|
|
1866
2271
|
} | undefined;
|
|
1867
2272
|
};
|
|
1868
2273
|
} | {
|
|
@@ -1905,10 +2310,80 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1905
2310
|
readonly createdAt: string;
|
|
1906
2311
|
readonly deploymentId: string;
|
|
1907
2312
|
readonly payload: {
|
|
1908
|
-
readonly _tag: "
|
|
2313
|
+
readonly _tag: "SubmissionSettled";
|
|
1909
2314
|
readonly submissionId: string;
|
|
1910
|
-
readonly
|
|
1911
|
-
readonly
|
|
2315
|
+
readonly settlementId: string;
|
|
2316
|
+
readonly receiptId: string;
|
|
2317
|
+
readonly outcome: "aborted" | "completed" | "failed";
|
|
2318
|
+
readonly runId?: string | undefined;
|
|
2319
|
+
readonly result?: Schema.Json | undefined;
|
|
2320
|
+
readonly runDisposition?: Schema.Json | undefined;
|
|
2321
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
2322
|
+
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
2323
|
+
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
2324
|
+
readonly usageSummary?: {
|
|
2325
|
+
readonly modelCalls: number;
|
|
2326
|
+
readonly inputTokens: {
|
|
2327
|
+
readonly total: number;
|
|
2328
|
+
readonly uncached: number;
|
|
2329
|
+
readonly cacheRead: number;
|
|
2330
|
+
readonly cacheWrite: number;
|
|
2331
|
+
};
|
|
2332
|
+
readonly outputTokens: {
|
|
2333
|
+
readonly total: number;
|
|
2334
|
+
readonly text: number;
|
|
2335
|
+
readonly reasoning: number;
|
|
2336
|
+
};
|
|
2337
|
+
readonly costMicrousd: number;
|
|
2338
|
+
readonly byModel: readonly {
|
|
2339
|
+
readonly provider: string;
|
|
2340
|
+
readonly model: string;
|
|
2341
|
+
readonly responseModel?: string | undefined;
|
|
2342
|
+
readonly serviceTier?: string | undefined;
|
|
2343
|
+
readonly pricingVersion?: string | undefined;
|
|
2344
|
+
readonly modelCalls: number;
|
|
2345
|
+
readonly inputTokens: {
|
|
2346
|
+
readonly total: number;
|
|
2347
|
+
readonly uncached: number;
|
|
2348
|
+
readonly cacheRead: number;
|
|
2349
|
+
readonly cacheWrite: number;
|
|
2350
|
+
};
|
|
2351
|
+
readonly outputTokens: {
|
|
2352
|
+
readonly total: number;
|
|
2353
|
+
readonly text: number;
|
|
2354
|
+
readonly reasoning: number;
|
|
2355
|
+
};
|
|
2356
|
+
readonly costMicrousd: number;
|
|
2357
|
+
}[];
|
|
2358
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2359
|
+
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2360
|
+
readonly unobservedModelCalls?: number | undefined;
|
|
2361
|
+
} | undefined;
|
|
2362
|
+
readonly uncommittedModelUsage?: readonly {
|
|
2363
|
+
readonly provider: string;
|
|
2364
|
+
readonly model: string;
|
|
2365
|
+
readonly serviceTier?: string | undefined;
|
|
2366
|
+
readonly pricingVersion?: string | undefined;
|
|
2367
|
+
readonly response?: {
|
|
2368
|
+
readonly id?: string | undefined;
|
|
2369
|
+
readonly model?: string | undefined;
|
|
2370
|
+
} | undefined;
|
|
2371
|
+
readonly purpose?: "summary" | "turn" | undefined;
|
|
2372
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2373
|
+
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
2374
|
+
readonly inputTokens: {
|
|
2375
|
+
readonly total: number;
|
|
2376
|
+
readonly uncached: number;
|
|
2377
|
+
readonly cacheRead: number;
|
|
2378
|
+
readonly cacheWrite: number;
|
|
2379
|
+
};
|
|
2380
|
+
readonly outputTokens: {
|
|
2381
|
+
readonly total: number;
|
|
2382
|
+
readonly text: number;
|
|
2383
|
+
readonly reasoning: number;
|
|
2384
|
+
};
|
|
2385
|
+
readonly costMicrousd: number;
|
|
2386
|
+
}[] | undefined;
|
|
1912
2387
|
} | {
|
|
1913
2388
|
readonly _tag: "ThreadCreated";
|
|
1914
2389
|
readonly agentId: string;
|
|
@@ -1942,6 +2417,75 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1942
2417
|
readonly ownerThreadId: string;
|
|
1943
2418
|
readonly messageId: string;
|
|
1944
2419
|
} | undefined;
|
|
2420
|
+
} | {
|
|
2421
|
+
readonly _tag: "WorkerCompletion";
|
|
2422
|
+
readonly budgetExhausted: boolean;
|
|
2423
|
+
readonly schemaVersion: 1;
|
|
2424
|
+
readonly report: {
|
|
2425
|
+
readonly _tag: "Settled";
|
|
2426
|
+
readonly worker: {
|
|
2427
|
+
readonly schemaVersion: 1;
|
|
2428
|
+
readonly delegationId: string;
|
|
2429
|
+
readonly targetAgentId: string;
|
|
2430
|
+
readonly threadId: string;
|
|
2431
|
+
};
|
|
2432
|
+
readonly receipt: {
|
|
2433
|
+
readonly receiptId: string;
|
|
2434
|
+
readonly submissionId: string;
|
|
2435
|
+
readonly threadId: string;
|
|
2436
|
+
readonly queueSequence: number;
|
|
2437
|
+
};
|
|
2438
|
+
readonly runId: string;
|
|
2439
|
+
readonly settlementId: string;
|
|
2440
|
+
readonly outcome: "completed";
|
|
2441
|
+
readonly result: Schema.Json;
|
|
2442
|
+
} | {
|
|
2443
|
+
readonly _tag: "Settled";
|
|
2444
|
+
readonly worker: {
|
|
2445
|
+
readonly schemaVersion: 1;
|
|
2446
|
+
readonly delegationId: string;
|
|
2447
|
+
readonly targetAgentId: string;
|
|
2448
|
+
readonly threadId: string;
|
|
2449
|
+
};
|
|
2450
|
+
readonly receipt: {
|
|
2451
|
+
readonly receiptId: string;
|
|
2452
|
+
readonly submissionId: string;
|
|
2453
|
+
readonly threadId: string;
|
|
2454
|
+
readonly queueSequence: number;
|
|
2455
|
+
};
|
|
2456
|
+
readonly runId: string;
|
|
2457
|
+
readonly settlementId: string;
|
|
2458
|
+
readonly outcome: "aborted" | "failed";
|
|
2459
|
+
readonly failure: {
|
|
2460
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
2461
|
+
readonly delegationId: string;
|
|
2462
|
+
readonly targetAgentId: string;
|
|
2463
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
2464
|
+
readonly childThreadId?: string | undefined;
|
|
2465
|
+
readonly childSubmissionId?: string | undefined;
|
|
2466
|
+
readonly childRunId?: string | undefined;
|
|
2467
|
+
readonly errorTag: string;
|
|
2468
|
+
readonly message: string;
|
|
2469
|
+
};
|
|
2470
|
+
};
|
|
2471
|
+
} | {
|
|
2472
|
+
readonly _tag: "WorkerUpdate";
|
|
2473
|
+
readonly schemaVersion: 1;
|
|
2474
|
+
readonly worker: {
|
|
2475
|
+
readonly schemaVersion: 1;
|
|
2476
|
+
readonly delegationId: string;
|
|
2477
|
+
readonly targetAgentId: string;
|
|
2478
|
+
readonly threadId: string;
|
|
2479
|
+
};
|
|
2480
|
+
readonly update: {
|
|
2481
|
+
readonly schemaVersion: 1;
|
|
2482
|
+
readonly agentId: string;
|
|
2483
|
+
readonly threadId: string;
|
|
2484
|
+
readonly runId: string;
|
|
2485
|
+
readonly updateId: string;
|
|
2486
|
+
readonly sequence: number;
|
|
2487
|
+
readonly value: Schema.Json;
|
|
2488
|
+
};
|
|
1945
2489
|
} | undefined;
|
|
1946
2490
|
} | {
|
|
1947
2491
|
readonly _tag: "RunStarted";
|
|
@@ -2075,90 +2619,20 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2075
2619
|
readonly handoff?: string | undefined;
|
|
2076
2620
|
} | {
|
|
2077
2621
|
readonly _tag: "RunFailed";
|
|
2078
|
-
readonly runId: string;
|
|
2079
|
-
readonly failure: Schema.Json;
|
|
2080
|
-
} | {
|
|
2081
|
-
readonly _tag: "RunCompleted";
|
|
2082
|
-
readonly runId: string;
|
|
2083
|
-
readonly output: Schema.Json;
|
|
2084
|
-
readonly runDisposition?: Schema.Json | undefined;
|
|
2085
|
-
readonly finishReason?: "budget-exhausted" | undefined;
|
|
2086
|
-
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
2087
|
-
} | {
|
|
2088
|
-
readonly _tag: "
|
|
2089
|
-
readonly submissionId: string;
|
|
2090
|
-
readonly
|
|
2091
|
-
readonly
|
|
2092
|
-
readonly outcome: "aborted" | "completed" | "failed";
|
|
2093
|
-
readonly runId?: string | undefined;
|
|
2094
|
-
readonly result?: Schema.Json | undefined;
|
|
2095
|
-
readonly runDisposition?: Schema.Json | undefined;
|
|
2096
|
-
readonly finishReason?: "budget-exhausted" | undefined;
|
|
2097
|
-
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
2098
|
-
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
2099
|
-
readonly usageSummary?: {
|
|
2100
|
-
readonly modelCalls: number;
|
|
2101
|
-
readonly inputTokens: {
|
|
2102
|
-
readonly total: number;
|
|
2103
|
-
readonly uncached: number;
|
|
2104
|
-
readonly cacheRead: number;
|
|
2105
|
-
readonly cacheWrite: number;
|
|
2106
|
-
};
|
|
2107
|
-
readonly outputTokens: {
|
|
2108
|
-
readonly total: number;
|
|
2109
|
-
readonly text: number;
|
|
2110
|
-
readonly reasoning: number;
|
|
2111
|
-
};
|
|
2112
|
-
readonly costMicrousd: number;
|
|
2113
|
-
readonly byModel: readonly {
|
|
2114
|
-
readonly provider: string;
|
|
2115
|
-
readonly model: string;
|
|
2116
|
-
readonly responseModel?: string | undefined;
|
|
2117
|
-
readonly serviceTier?: string | undefined;
|
|
2118
|
-
readonly pricingVersion?: string | undefined;
|
|
2119
|
-
readonly modelCalls: number;
|
|
2120
|
-
readonly inputTokens: {
|
|
2121
|
-
readonly total: number;
|
|
2122
|
-
readonly uncached: number;
|
|
2123
|
-
readonly cacheRead: number;
|
|
2124
|
-
readonly cacheWrite: number;
|
|
2125
|
-
};
|
|
2126
|
-
readonly outputTokens: {
|
|
2127
|
-
readonly total: number;
|
|
2128
|
-
readonly text: number;
|
|
2129
|
-
readonly reasoning: number;
|
|
2130
|
-
};
|
|
2131
|
-
readonly costMicrousd: number;
|
|
2132
|
-
}[];
|
|
2133
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2134
|
-
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2135
|
-
readonly unobservedModelCalls?: number | undefined;
|
|
2136
|
-
} | undefined;
|
|
2137
|
-
readonly uncommittedModelUsage?: readonly {
|
|
2138
|
-
readonly provider: string;
|
|
2139
|
-
readonly model: string;
|
|
2140
|
-
readonly serviceTier?: string | undefined;
|
|
2141
|
-
readonly pricingVersion?: string | undefined;
|
|
2142
|
-
readonly response?: {
|
|
2143
|
-
readonly id?: string | undefined;
|
|
2144
|
-
readonly model?: string | undefined;
|
|
2145
|
-
} | undefined;
|
|
2146
|
-
readonly purpose?: "summary" | "turn" | undefined;
|
|
2147
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2148
|
-
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
2149
|
-
readonly inputTokens: {
|
|
2150
|
-
readonly total: number;
|
|
2151
|
-
readonly uncached: number;
|
|
2152
|
-
readonly cacheRead: number;
|
|
2153
|
-
readonly cacheWrite: number;
|
|
2154
|
-
};
|
|
2155
|
-
readonly outputTokens: {
|
|
2156
|
-
readonly total: number;
|
|
2157
|
-
readonly text: number;
|
|
2158
|
-
readonly reasoning: number;
|
|
2159
|
-
};
|
|
2160
|
-
readonly costMicrousd: number;
|
|
2161
|
-
}[] | undefined;
|
|
2622
|
+
readonly runId: string;
|
|
2623
|
+
readonly failure: Schema.Json;
|
|
2624
|
+
} | {
|
|
2625
|
+
readonly _tag: "RunCompleted";
|
|
2626
|
+
readonly runId: string;
|
|
2627
|
+
readonly output: Schema.Json;
|
|
2628
|
+
readonly runDisposition?: Schema.Json | undefined;
|
|
2629
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
2630
|
+
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
2631
|
+
} | {
|
|
2632
|
+
readonly _tag: "AbortRequested";
|
|
2633
|
+
readonly submissionId: string;
|
|
2634
|
+
readonly author: string;
|
|
2635
|
+
readonly reason: string;
|
|
2162
2636
|
} | {
|
|
2163
2637
|
readonly _tag: "SubagentRequested";
|
|
2164
2638
|
readonly runId: string;
|
|
@@ -2359,6 +2833,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2359
2833
|
readonly createdAtMillis: number;
|
|
2360
2834
|
readonly expiresAtMillis: number;
|
|
2361
2835
|
readonly reporting?: {
|
|
2836
|
+
readonly mode?: "standard" | undefined;
|
|
2362
2837
|
readonly sourceDigests: {
|
|
2363
2838
|
readonly agent: string;
|
|
2364
2839
|
readonly model: string;
|
|
@@ -2372,6 +2847,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2372
2847
|
readonly createdAtMillis: number;
|
|
2373
2848
|
readonly sourceSubmissionId?: string | undefined;
|
|
2374
2849
|
readonly deliveryPrincipal?: string | undefined;
|
|
2850
|
+
readonly reportKind?: "update" | undefined;
|
|
2375
2851
|
};
|
|
2376
2852
|
readonly inputDigest: string;
|
|
2377
2853
|
} | {
|
|
@@ -2435,6 +2911,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2435
2911
|
readonly createdAtMillis: number;
|
|
2436
2912
|
readonly expiresAtMillis: number;
|
|
2437
2913
|
readonly reporting?: {
|
|
2914
|
+
readonly mode?: "standard" | undefined;
|
|
2438
2915
|
readonly sourceDigests: {
|
|
2439
2916
|
readonly agent: string;
|
|
2440
2917
|
readonly model: string;
|
|
@@ -2458,6 +2935,30 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2458
2935
|
readonly envelope: Schema.Json;
|
|
2459
2936
|
readonly createdAtMillis: number;
|
|
2460
2937
|
readonly deadlineAtMillis: number;
|
|
2938
|
+
readonly predecessor?: string | undefined;
|
|
2939
|
+
} | {
|
|
2940
|
+
readonly _tag: "AgentUpdateEmitted";
|
|
2941
|
+
readonly update: {
|
|
2942
|
+
readonly schemaVersion: 1;
|
|
2943
|
+
readonly agentId: string;
|
|
2944
|
+
readonly threadId: string;
|
|
2945
|
+
readonly runId: string;
|
|
2946
|
+
readonly updateId: string;
|
|
2947
|
+
readonly sequence: number;
|
|
2948
|
+
readonly value: Schema.Json;
|
|
2949
|
+
};
|
|
2950
|
+
readonly definitions: {
|
|
2951
|
+
readonly agent: string;
|
|
2952
|
+
readonly model: string;
|
|
2953
|
+
readonly tools: string;
|
|
2954
|
+
};
|
|
2955
|
+
readonly delivery?: {
|
|
2956
|
+
readonly messageId: string;
|
|
2957
|
+
readonly envelope: Schema.Json;
|
|
2958
|
+
readonly createdAtMillis: number;
|
|
2959
|
+
readonly deadlineAtMillis: number;
|
|
2960
|
+
readonly predecessor?: string | undefined;
|
|
2961
|
+
} | undefined;
|
|
2461
2962
|
} | {
|
|
2462
2963
|
readonly _tag: "WorkerReportRefused";
|
|
2463
2964
|
readonly runId: string;
|
|
@@ -2540,10 +3041,80 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2540
3041
|
readonly createdAt: string;
|
|
2541
3042
|
readonly deploymentId: string;
|
|
2542
3043
|
readonly payload: {
|
|
2543
|
-
readonly _tag: "
|
|
3044
|
+
readonly _tag: "SubmissionSettled";
|
|
2544
3045
|
readonly submissionId: string;
|
|
2545
|
-
readonly
|
|
2546
|
-
readonly
|
|
3046
|
+
readonly settlementId: string;
|
|
3047
|
+
readonly receiptId: string;
|
|
3048
|
+
readonly outcome: "aborted" | "completed" | "failed";
|
|
3049
|
+
readonly runId?: string | undefined;
|
|
3050
|
+
readonly result?: Schema.Json | undefined;
|
|
3051
|
+
readonly runDisposition?: Schema.Json | undefined;
|
|
3052
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
3053
|
+
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
3054
|
+
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
3055
|
+
readonly usageSummary?: {
|
|
3056
|
+
readonly modelCalls: number;
|
|
3057
|
+
readonly inputTokens: {
|
|
3058
|
+
readonly total: number;
|
|
3059
|
+
readonly uncached: number;
|
|
3060
|
+
readonly cacheRead: number;
|
|
3061
|
+
readonly cacheWrite: number;
|
|
3062
|
+
};
|
|
3063
|
+
readonly outputTokens: {
|
|
3064
|
+
readonly total: number;
|
|
3065
|
+
readonly text: number;
|
|
3066
|
+
readonly reasoning: number;
|
|
3067
|
+
};
|
|
3068
|
+
readonly costMicrousd: number;
|
|
3069
|
+
readonly byModel: readonly {
|
|
3070
|
+
readonly provider: string;
|
|
3071
|
+
readonly model: string;
|
|
3072
|
+
readonly responseModel?: string | undefined;
|
|
3073
|
+
readonly serviceTier?: string | undefined;
|
|
3074
|
+
readonly pricingVersion?: string | undefined;
|
|
3075
|
+
readonly modelCalls: number;
|
|
3076
|
+
readonly inputTokens: {
|
|
3077
|
+
readonly total: number;
|
|
3078
|
+
readonly uncached: number;
|
|
3079
|
+
readonly cacheRead: number;
|
|
3080
|
+
readonly cacheWrite: number;
|
|
3081
|
+
};
|
|
3082
|
+
readonly outputTokens: {
|
|
3083
|
+
readonly total: number;
|
|
3084
|
+
readonly text: number;
|
|
3085
|
+
readonly reasoning: number;
|
|
3086
|
+
};
|
|
3087
|
+
readonly costMicrousd: number;
|
|
3088
|
+
}[];
|
|
3089
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
3090
|
+
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
3091
|
+
readonly unobservedModelCalls?: number | undefined;
|
|
3092
|
+
} | undefined;
|
|
3093
|
+
readonly uncommittedModelUsage?: readonly {
|
|
3094
|
+
readonly provider: string;
|
|
3095
|
+
readonly model: string;
|
|
3096
|
+
readonly serviceTier?: string | undefined;
|
|
3097
|
+
readonly pricingVersion?: string | undefined;
|
|
3098
|
+
readonly response?: {
|
|
3099
|
+
readonly id?: string | undefined;
|
|
3100
|
+
readonly model?: string | undefined;
|
|
3101
|
+
} | undefined;
|
|
3102
|
+
readonly purpose?: "summary" | "turn" | undefined;
|
|
3103
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
3104
|
+
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
3105
|
+
readonly inputTokens: {
|
|
3106
|
+
readonly total: number;
|
|
3107
|
+
readonly uncached: number;
|
|
3108
|
+
readonly cacheRead: number;
|
|
3109
|
+
readonly cacheWrite: number;
|
|
3110
|
+
};
|
|
3111
|
+
readonly outputTokens: {
|
|
3112
|
+
readonly total: number;
|
|
3113
|
+
readonly text: number;
|
|
3114
|
+
readonly reasoning: number;
|
|
3115
|
+
};
|
|
3116
|
+
readonly costMicrousd: number;
|
|
3117
|
+
}[] | undefined;
|
|
2547
3118
|
} | {
|
|
2548
3119
|
readonly _tag: "ThreadCreated";
|
|
2549
3120
|
readonly agentId: string;
|
|
@@ -2577,6 +3148,75 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2577
3148
|
readonly ownerThreadId: string;
|
|
2578
3149
|
readonly messageId: string;
|
|
2579
3150
|
} | undefined;
|
|
3151
|
+
} | {
|
|
3152
|
+
readonly _tag: "WorkerCompletion";
|
|
3153
|
+
readonly budgetExhausted: boolean;
|
|
3154
|
+
readonly schemaVersion: 1;
|
|
3155
|
+
readonly report: {
|
|
3156
|
+
readonly _tag: "Settled";
|
|
3157
|
+
readonly worker: {
|
|
3158
|
+
readonly schemaVersion: 1;
|
|
3159
|
+
readonly delegationId: string;
|
|
3160
|
+
readonly targetAgentId: string;
|
|
3161
|
+
readonly threadId: string;
|
|
3162
|
+
};
|
|
3163
|
+
readonly receipt: {
|
|
3164
|
+
readonly receiptId: string;
|
|
3165
|
+
readonly submissionId: string;
|
|
3166
|
+
readonly threadId: string;
|
|
3167
|
+
readonly queueSequence: number;
|
|
3168
|
+
};
|
|
3169
|
+
readonly runId: string;
|
|
3170
|
+
readonly settlementId: string;
|
|
3171
|
+
readonly outcome: "completed";
|
|
3172
|
+
readonly result: Schema.Json;
|
|
3173
|
+
} | {
|
|
3174
|
+
readonly _tag: "Settled";
|
|
3175
|
+
readonly worker: {
|
|
3176
|
+
readonly schemaVersion: 1;
|
|
3177
|
+
readonly delegationId: string;
|
|
3178
|
+
readonly targetAgentId: string;
|
|
3179
|
+
readonly threadId: string;
|
|
3180
|
+
};
|
|
3181
|
+
readonly receipt: {
|
|
3182
|
+
readonly receiptId: string;
|
|
3183
|
+
readonly submissionId: string;
|
|
3184
|
+
readonly threadId: string;
|
|
3185
|
+
readonly queueSequence: number;
|
|
3186
|
+
};
|
|
3187
|
+
readonly runId: string;
|
|
3188
|
+
readonly settlementId: string;
|
|
3189
|
+
readonly outcome: "aborted" | "failed";
|
|
3190
|
+
readonly failure: {
|
|
3191
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
3192
|
+
readonly delegationId: string;
|
|
3193
|
+
readonly targetAgentId: string;
|
|
3194
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
3195
|
+
readonly childThreadId?: string | undefined;
|
|
3196
|
+
readonly childSubmissionId?: string | undefined;
|
|
3197
|
+
readonly childRunId?: string | undefined;
|
|
3198
|
+
readonly errorTag: string;
|
|
3199
|
+
readonly message: string;
|
|
3200
|
+
};
|
|
3201
|
+
};
|
|
3202
|
+
} | {
|
|
3203
|
+
readonly _tag: "WorkerUpdate";
|
|
3204
|
+
readonly schemaVersion: 1;
|
|
3205
|
+
readonly worker: {
|
|
3206
|
+
readonly schemaVersion: 1;
|
|
3207
|
+
readonly delegationId: string;
|
|
3208
|
+
readonly targetAgentId: string;
|
|
3209
|
+
readonly threadId: string;
|
|
3210
|
+
};
|
|
3211
|
+
readonly update: {
|
|
3212
|
+
readonly schemaVersion: 1;
|
|
3213
|
+
readonly agentId: string;
|
|
3214
|
+
readonly threadId: string;
|
|
3215
|
+
readonly runId: string;
|
|
3216
|
+
readonly updateId: string;
|
|
3217
|
+
readonly sequence: number;
|
|
3218
|
+
readonly value: Schema.Json;
|
|
3219
|
+
};
|
|
2580
3220
|
} | undefined;
|
|
2581
3221
|
} | {
|
|
2582
3222
|
readonly _tag: "RunStarted";
|
|
@@ -2720,80 +3360,10 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2720
3360
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
2721
3361
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
2722
3362
|
} | {
|
|
2723
|
-
readonly _tag: "
|
|
3363
|
+
readonly _tag: "AbortRequested";
|
|
2724
3364
|
readonly submissionId: string;
|
|
2725
|
-
readonly
|
|
2726
|
-
readonly
|
|
2727
|
-
readonly outcome: "aborted" | "completed" | "failed";
|
|
2728
|
-
readonly runId?: string | undefined;
|
|
2729
|
-
readonly result?: Schema.Json | undefined;
|
|
2730
|
-
readonly runDisposition?: Schema.Json | undefined;
|
|
2731
|
-
readonly finishReason?: "budget-exhausted" | undefined;
|
|
2732
|
-
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
2733
|
-
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
2734
|
-
readonly usageSummary?: {
|
|
2735
|
-
readonly modelCalls: number;
|
|
2736
|
-
readonly inputTokens: {
|
|
2737
|
-
readonly total: number;
|
|
2738
|
-
readonly uncached: number;
|
|
2739
|
-
readonly cacheRead: number;
|
|
2740
|
-
readonly cacheWrite: number;
|
|
2741
|
-
};
|
|
2742
|
-
readonly outputTokens: {
|
|
2743
|
-
readonly total: number;
|
|
2744
|
-
readonly text: number;
|
|
2745
|
-
readonly reasoning: number;
|
|
2746
|
-
};
|
|
2747
|
-
readonly costMicrousd: number;
|
|
2748
|
-
readonly byModel: readonly {
|
|
2749
|
-
readonly provider: string;
|
|
2750
|
-
readonly model: string;
|
|
2751
|
-
readonly responseModel?: string | undefined;
|
|
2752
|
-
readonly serviceTier?: string | undefined;
|
|
2753
|
-
readonly pricingVersion?: string | undefined;
|
|
2754
|
-
readonly modelCalls: number;
|
|
2755
|
-
readonly inputTokens: {
|
|
2756
|
-
readonly total: number;
|
|
2757
|
-
readonly uncached: number;
|
|
2758
|
-
readonly cacheRead: number;
|
|
2759
|
-
readonly cacheWrite: number;
|
|
2760
|
-
};
|
|
2761
|
-
readonly outputTokens: {
|
|
2762
|
-
readonly total: number;
|
|
2763
|
-
readonly text: number;
|
|
2764
|
-
readonly reasoning: number;
|
|
2765
|
-
};
|
|
2766
|
-
readonly costMicrousd: number;
|
|
2767
|
-
}[];
|
|
2768
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2769
|
-
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2770
|
-
readonly unobservedModelCalls?: number | undefined;
|
|
2771
|
-
} | undefined;
|
|
2772
|
-
readonly uncommittedModelUsage?: readonly {
|
|
2773
|
-
readonly provider: string;
|
|
2774
|
-
readonly model: string;
|
|
2775
|
-
readonly serviceTier?: string | undefined;
|
|
2776
|
-
readonly pricingVersion?: string | undefined;
|
|
2777
|
-
readonly response?: {
|
|
2778
|
-
readonly id?: string | undefined;
|
|
2779
|
-
readonly model?: string | undefined;
|
|
2780
|
-
} | undefined;
|
|
2781
|
-
readonly purpose?: "summary" | "turn" | undefined;
|
|
2782
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2783
|
-
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
2784
|
-
readonly inputTokens: {
|
|
2785
|
-
readonly total: number;
|
|
2786
|
-
readonly uncached: number;
|
|
2787
|
-
readonly cacheRead: number;
|
|
2788
|
-
readonly cacheWrite: number;
|
|
2789
|
-
};
|
|
2790
|
-
readonly outputTokens: {
|
|
2791
|
-
readonly total: number;
|
|
2792
|
-
readonly text: number;
|
|
2793
|
-
readonly reasoning: number;
|
|
2794
|
-
};
|
|
2795
|
-
readonly costMicrousd: number;
|
|
2796
|
-
}[] | undefined;
|
|
3365
|
+
readonly author: string;
|
|
3366
|
+
readonly reason: string;
|
|
2797
3367
|
} | {
|
|
2798
3368
|
readonly _tag: "SubagentRequested";
|
|
2799
3369
|
readonly runId: string;
|
|
@@ -2994,6 +3564,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2994
3564
|
readonly createdAtMillis: number;
|
|
2995
3565
|
readonly expiresAtMillis: number;
|
|
2996
3566
|
readonly reporting?: {
|
|
3567
|
+
readonly mode?: "standard" | undefined;
|
|
2997
3568
|
readonly sourceDigests: {
|
|
2998
3569
|
readonly agent: string;
|
|
2999
3570
|
readonly model: string;
|
|
@@ -3007,6 +3578,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3007
3578
|
readonly createdAtMillis: number;
|
|
3008
3579
|
readonly sourceSubmissionId?: string | undefined;
|
|
3009
3580
|
readonly deliveryPrincipal?: string | undefined;
|
|
3581
|
+
readonly reportKind?: "update" | undefined;
|
|
3010
3582
|
};
|
|
3011
3583
|
readonly inputDigest: string;
|
|
3012
3584
|
} | {
|
|
@@ -3070,6 +3642,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3070
3642
|
readonly createdAtMillis: number;
|
|
3071
3643
|
readonly expiresAtMillis: number;
|
|
3072
3644
|
readonly reporting?: {
|
|
3645
|
+
readonly mode?: "standard" | undefined;
|
|
3073
3646
|
readonly sourceDigests: {
|
|
3074
3647
|
readonly agent: string;
|
|
3075
3648
|
readonly model: string;
|
|
@@ -3093,6 +3666,30 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3093
3666
|
readonly envelope: Schema.Json;
|
|
3094
3667
|
readonly createdAtMillis: number;
|
|
3095
3668
|
readonly deadlineAtMillis: number;
|
|
3669
|
+
readonly predecessor?: string | undefined;
|
|
3670
|
+
} | {
|
|
3671
|
+
readonly _tag: "AgentUpdateEmitted";
|
|
3672
|
+
readonly update: {
|
|
3673
|
+
readonly schemaVersion: 1;
|
|
3674
|
+
readonly agentId: string;
|
|
3675
|
+
readonly threadId: string;
|
|
3676
|
+
readonly runId: string;
|
|
3677
|
+
readonly updateId: string;
|
|
3678
|
+
readonly sequence: number;
|
|
3679
|
+
readonly value: Schema.Json;
|
|
3680
|
+
};
|
|
3681
|
+
readonly definitions: {
|
|
3682
|
+
readonly agent: string;
|
|
3683
|
+
readonly model: string;
|
|
3684
|
+
readonly tools: string;
|
|
3685
|
+
};
|
|
3686
|
+
readonly delivery?: {
|
|
3687
|
+
readonly messageId: string;
|
|
3688
|
+
readonly envelope: Schema.Json;
|
|
3689
|
+
readonly createdAtMillis: number;
|
|
3690
|
+
readonly deadlineAtMillis: number;
|
|
3691
|
+
readonly predecessor?: string | undefined;
|
|
3692
|
+
} | undefined;
|
|
3096
3693
|
} | {
|
|
3097
3694
|
readonly _tag: "WorkerReportRefused";
|
|
3098
3695
|
readonly runId: string;
|
|
@@ -3153,6 +3750,14 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3153
3750
|
} | {
|
|
3154
3751
|
readonly _tag: "PortFailed";
|
|
3155
3752
|
readonly failure: {
|
|
3753
|
+
readonly _tag: "ThreadNotMaterialized";
|
|
3754
|
+
readonly threadId: string;
|
|
3755
|
+
} | {
|
|
3756
|
+
readonly _tag: "FenceRejected";
|
|
3757
|
+
readonly threadId: string;
|
|
3758
|
+
readonly actualEpoch: number;
|
|
3759
|
+
readonly attemptedEpoch: number;
|
|
3760
|
+
} | {
|
|
3156
3761
|
readonly _tag: "AdmissionConflict";
|
|
3157
3762
|
readonly threadId: string;
|
|
3158
3763
|
readonly principal: string;
|
|
@@ -3168,9 +3773,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3168
3773
|
readonly operation: string;
|
|
3169
3774
|
readonly message: string;
|
|
3170
3775
|
readonly cause?: Schema.Json | undefined;
|
|
3171
|
-
} | {
|
|
3172
|
-
readonly _tag: "PortProtocolError";
|
|
3173
|
-
readonly message: string;
|
|
3174
3776
|
} | {
|
|
3175
3777
|
readonly _tag: "SettlementConflict";
|
|
3176
3778
|
readonly submissionId: string;
|
|
@@ -3179,14 +3781,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3179
3781
|
readonly _tag: "JoinedToHost";
|
|
3180
3782
|
readonly submissionId: string;
|
|
3181
3783
|
readonly hostSubmissionId: string;
|
|
3182
|
-
} | {
|
|
3183
|
-
readonly _tag: "ThreadNotMaterialized";
|
|
3184
|
-
readonly threadId: string;
|
|
3185
|
-
} | {
|
|
3186
|
-
readonly _tag: "FenceRejected";
|
|
3187
|
-
readonly threadId: string;
|
|
3188
|
-
readonly actualEpoch: number;
|
|
3189
|
-
readonly attemptedEpoch: number;
|
|
3190
3784
|
} | {
|
|
3191
3785
|
readonly _tag: "ThreadStoreError";
|
|
3192
3786
|
readonly operation: string;
|
|
@@ -3199,6 +3793,9 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3199
3793
|
readonly reason: "batch-digest" | "record-identity" | "tail";
|
|
3200
3794
|
readonly actualTailSequence?: number | undefined;
|
|
3201
3795
|
readonly actualTailDigest?: string | undefined;
|
|
3796
|
+
} | {
|
|
3797
|
+
readonly _tag: "PortProtocolError";
|
|
3798
|
+
readonly message: string;
|
|
3202
3799
|
};
|
|
3203
3800
|
}, Schema.SchemaError, never>;
|
|
3204
3801
|
declare const decodePortResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<PortFailed | PortSucceeded, Schema.SchemaError, never>;
|