effect-durable-agent 0.1.0-alpha.1 → 0.1.0-alpha.10
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/README.md +140 -136
- package/dist/{command-queues-CQ9cwRP7.d.ts → command-queues-CQi4Xc7u.d.ts} +109 -21
- package/dist/{commands-Ce1ec6kH.d.ts → commands-p8venTWs.d.ts} +10 -2
- package/dist/compaction-0k8zCJgB.js +473 -0
- package/dist/compaction-0k8zCJgB.js.map +1 -0
- package/dist/{compaction-YayFKo_1.d.ts → compaction-BhLSSXJ-.d.ts} +28 -7
- package/dist/context-projection-mCuvcO2W.d.ts +140 -0
- package/dist/{core-Hv3cFydL.d.ts → core-C-6xHzRx.d.ts} +6 -3
- package/dist/domain/command-queues.d.ts +1 -1
- package/dist/domain/command-queues.js +1 -1
- package/dist/domain/command-queues.js.map +1 -1
- package/dist/domain/context-projection.d.ts +2 -0
- package/dist/domain/context-projection.js +32 -0
- package/dist/domain/context-projection.js.map +1 -0
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/model-usage.d.ts +2 -0
- package/dist/domain/model-usage.js +59 -0
- package/dist/domain/model-usage.js.map +1 -0
- package/dist/domain/reduced-state-schema.d.ts +14 -18
- package/dist/domain/reduced-state-schema.js +7 -11
- package/dist/domain/reduced-state-schema.js.map +1 -1
- package/dist/domain/reduced-state.d.ts +3 -2
- package/dist/domain/reduced-state.js +3 -2
- package/dist/domain/run-scheduling.d.ts +2 -0
- package/dist/domain/run-scheduling.js +127 -0
- package/dist/domain/run-scheduling.js.map +1 -0
- package/dist/{durable-C3Rz7kg3.js → durable-BPHVFVvV.js} +74 -83
- package/dist/durable-BPHVFVvV.js.map +1 -0
- package/dist/{durable-DlScwmCy.d.ts → durable-DeLCAvbw.d.ts} +1256 -104
- package/dist/envelope-DkZyMIgp.d.ts +191 -0
- package/dist/envelope-DxQzo5rN.js +82 -0
- package/dist/envelope-DxQzo5rN.js.map +1 -0
- package/dist/{keep-alive-DYDsH6qN.d.ts → event-factory-KaeDSfeP.d.ts} +11 -31
- package/dist/{keep-alive-p8dIcSVy.js → event-factory-QuC_UvyP.js} +8 -10
- package/dist/event-factory-QuC_UvyP.js.map +1 -0
- package/dist/{events-Bb9-Cu-7.d.ts → events-LZFNoESe.d.ts} +2 -188
- package/dist/{id-generator-C2Q15uZM.d.ts → id-generator--x6itQZ2.d.ts} +3 -2
- package/dist/index.d.ts +7 -6
- package/dist/index.js +5 -4
- package/dist/keep-alive-Chl5SJxy.d.ts +29 -0
- package/dist/{message-transcript-BCHdHAe2.d.ts → message-transcript-6PEzaEGn.d.ts} +4 -4
- package/dist/model-resolver-BPPJAsuh.d.ts +18 -0
- package/dist/model-usage-CdBEkTwU.d.ts +55 -0
- package/dist/{prompt-projector-9_02lk5-.d.ts → prompt-projector-CNhqUsEr.d.ts} +15 -16
- package/dist/{reduced-state-C4nVVzz9.js → reduced-state-Bz68V2H8.js} +65 -32
- package/dist/reduced-state-Bz68V2H8.js.map +1 -0
- package/dist/{reducer-registry-C0svUa63.d.ts → reducer-registry-CCSzc4h8.d.ts} +16 -6
- package/dist/run-scheduler-DcS_okUH.d.ts +43 -0
- package/dist/run-scheduling-wakeup-CeHrvXie.d.ts +25 -0
- package/dist/{runtime-C56FQxiL.d.ts → runtime-WL_gKqxn.d.ts} +16 -7
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/compaction.js +1 -425
- package/dist/services/id-generator.d.ts +1 -1
- package/dist/services/id-generator.js +2 -1
- package/dist/services/id-generator.js.map +1 -1
- package/dist/services/keep-alive.d.ts +2 -0
- package/dist/services/keep-alive.js +13 -0
- package/dist/services/keep-alive.js.map +1 -0
- package/dist/services/model-resolver.d.ts +2 -0
- package/dist/services/model-resolver.js +17 -0
- package/dist/services/model-resolver.js.map +1 -0
- package/dist/services/prompt-projector.d.ts +2 -2
- package/dist/services/prompt-projector.js +20 -10
- package/dist/services/prompt-projector.js.map +1 -1
- package/dist/services/reducer-registry.d.ts +2 -2
- package/dist/services/reducer-registry.js +7 -3
- package/dist/services/reducer-registry.js.map +1 -1
- package/dist/services/run-scheduler.d.ts +3 -0
- package/dist/services/run-scheduler.js +25 -0
- package/dist/services/run-scheduler.js.map +1 -0
- package/dist/services/run-scheduling-wakeup.d.ts +2 -0
- package/dist/services/run-scheduling-wakeup.js +13 -0
- package/dist/services/run-scheduling-wakeup.js.map +1 -0
- package/dist/services/runtime-layer.d.ts +67 -0
- package/dist/services/runtime-layer.js +47 -0
- package/dist/services/runtime-layer.js.map +1 -0
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +21 -14
- package/dist/services/runtime.js.map +1 -1
- package/dist/services/session-event-observer.d.ts +2 -0
- package/dist/services/session-event-observer.js +13 -0
- package/dist/services/session-event-observer.js.map +1 -0
- package/dist/services/session-query.d.ts +2 -2
- package/dist/services/session-query.js +140 -1
- package/dist/services/session-query.js.map +1 -0
- package/dist/services/session-state.d.ts +2 -0
- package/dist/services/session-state.js +2 -0
- package/dist/services/session-store.d.ts +2 -2
- package/dist/services/session-store.js +182 -2
- package/dist/services/session-store.js.map +1 -0
- package/dist/services/sink-checkpoint-store.d.ts +2 -0
- package/dist/services/sink-checkpoint-store.js +49 -0
- package/dist/services/sink-checkpoint-store.js.map +1 -0
- package/dist/services/sink-registry.d.ts +1 -1
- package/dist/services/sink-registry.js +1 -1
- package/dist/services/span-names.d.ts +1 -1
- package/dist/services/span-names.js +3 -0
- package/dist/services/span-names.js.map +1 -1
- package/dist/services/tool-registry.d.ts +1 -1
- package/dist/services/tracing.d.ts +1 -1
- package/dist/services/tracing.js +23 -2
- package/dist/services/tracing.js.map +1 -1
- package/dist/session-event-observer-DaFMKKNc.d.ts +24 -0
- package/dist/session-query-DfW_4KC0.d.ts +47 -0
- package/dist/{session-query-DOc1KanA.js → session-state-BIZ2SYaP.js} +350 -183
- package/dist/session-state-BIZ2SYaP.js.map +1 -0
- package/dist/{session-query-DlRo5Ufc.d.ts → session-state-BeR2rZRR.d.ts} +144 -46
- package/dist/{session-store-D2Ore1QC.d.ts → session-store-J_Un45kW.d.ts} +7 -96
- package/dist/sink-checkpoint-store-C9hUxfH0.d.ts +40 -0
- package/dist/{sink-registry-CFC6xjsN.js → sink-registry-Bbqhtdnx.js} +27 -67
- package/dist/sink-registry-Bbqhtdnx.js.map +1 -0
- package/dist/{sink-registry-CIU0LD3m.d.ts → sink-registry-DuDkNXjZ.d.ts} +24 -49
- package/dist/testkit/layers.d.ts +24 -14
- package/dist/testkit/layers.js +18 -11
- package/dist/testkit/layers.js.map +1 -1
- package/dist/{tool-registry-CcnkAAQK.d.ts → tool-registry-BDmJe_Wr.d.ts} +4 -4
- package/dist/types/commands.d.ts +2 -2
- package/dist/types/commands.js +7 -2
- package/dist/types/commands.js.map +1 -1
- package/dist/types/core.d.ts +2 -2
- package/dist/types/core.js +4 -2
- package/dist/types/core.js.map +1 -1
- package/dist/types/events/durable.d.ts +2 -2
- package/dist/types/events/durable.js +2 -2
- package/dist/types/events.d.ts +4 -3
- package/dist/types/events.js +3 -2
- package/dist/types/events.js.map +1 -1
- package/dist/websocket.d.ts +2776 -0
- package/dist/websocket.js +498 -0
- package/dist/websocket.js.map +1 -0
- package/package.json +68 -43
- package/testing/offline-trace/README.md +2 -1
- package/CHANGELOG.md +0 -10
- package/CONTRIBUTING.md +0 -26
- package/SECURITY.md +0 -8
- package/dist/durable-C3Rz7kg3.js.map +0 -1
- package/dist/durable-object-runtime-B7jwBY2R.js +0 -1494
- package/dist/durable-object-runtime-B7jwBY2R.js.map +0 -1
- package/dist/durable-object-runtime-pWv0ohlz.d.ts +0 -257
- package/dist/durable-object-storage-Czy7IPrh.d.ts +0 -41
- package/dist/host/durable-object-runtime.d.ts +0 -2
- package/dist/host/durable-object-runtime.js +0 -2
- package/dist/host/durable-object-storage.d.ts +0 -2
- package/dist/host/durable-object-storage.js +0 -0
- package/dist/host/durable-object.d.ts +0 -83
- package/dist/host/durable-object.js +0 -191
- package/dist/host/durable-object.js.map +0 -1
- package/dist/host/websocket-wire.d.ts +0 -2
- package/dist/host/websocket-wire.js +0 -88
- package/dist/host/websocket-wire.js.map +0 -1
- package/dist/keep-alive-p8dIcSVy.js.map +0 -1
- package/dist/reduced-state-C4nVVzz9.js.map +0 -1
- package/dist/services/compaction.js.map +0 -1
- package/dist/session-query-DOc1KanA.js.map +0 -1
- package/dist/session-store-pYxQW9qh.js +0 -214
- package/dist/session-store-pYxQW9qh.js.map +0 -1
- package/dist/sink-registry-CFC6xjsN.js.map +0 -1
- package/dist/websocket-wire-DvOu_6BJ.d.ts +0 -16773
- package/docs/assets/architecture.svg +0 -106
- package/docs/assets/event-sequence.svg +0 -143
- package/docs/assets/gcp-trace.png +0 -0
- package/docs/message-steering.md +0 -831
- package/docs/releasing.md +0 -57
- package/docs/spec.md +0 -774
- package/docs/subagents.md +0 -725
- package/docs/testing.md +0 -64
- package/docs/ui-projection.md +0 -742
- package/docs/websocket-protocol.md +0 -613
- package/examples/001-no-tools/README.md +0 -65
- package/examples/001-no-tools/worker.ts +0 -79
- package/examples/002-slack-bridge/README.md +0 -134
- package/examples/002-slack-bridge/events.ts +0 -115
- package/examples/002-slack-bridge/reducer.ts +0 -216
- package/examples/002-slack-bridge/scenario.test.ts +0 -223
- package/examples/002-slack-bridge/sinks.ts +0 -109
- package/examples/002-slack-bridge/worker.ts +0 -140
- package/examples/003-sandbox-lifecycle/README.md +0 -78
- package/examples/003-sandbox-lifecycle/events.ts +0 -203
- package/examples/003-sandbox-lifecycle/reducer.ts +0 -305
- package/examples/003-sandbox-lifecycle/scenario.test.ts +0 -202
- package/examples/_shared/event-id.ts +0 -12
- package/examples/_shared/http.ts +0 -27
- package/examples/_shared/openai.ts +0 -33
|
@@ -1,8 +1,45 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as StopTurnCommand, l as SubmitMessageCommand, o as PromotePendingMessageCommand, s as ResumePendingMessagesCommand, t as CancelPendingMessageCommand } from "./commands-p8venTWs.js";
|
|
2
2
|
import * as Effect from "effect/Effect";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
|
|
5
5
|
//#region src/types/events/durable.d.ts
|
|
6
|
+
/** Establishes a session's execution policy before its first run; not a model-switch operation. */
|
|
7
|
+
declare const sessionConfiguredEventType: "SessionConfigured";
|
|
8
|
+
declare const SessionConfiguredEvent: Schema.Struct<{
|
|
9
|
+
readonly namespace: Schema.Literal<string>;
|
|
10
|
+
readonly type: Schema.Literal<"SessionConfigured">;
|
|
11
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
12
|
+
readonly payload: Schema.Struct<{
|
|
13
|
+
readonly modelSelection: Schema.Struct<{
|
|
14
|
+
readonly provider: Schema.NonEmptyString;
|
|
15
|
+
readonly modelId: Schema.NonEmptyString;
|
|
16
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
17
|
+
}>;
|
|
18
|
+
}>;
|
|
19
|
+
readonly durability: Schema.Literal<"durable">;
|
|
20
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
21
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
22
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
23
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
24
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
25
|
+
readonly span: Schema.Struct<{
|
|
26
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
27
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
28
|
+
readonly sampled: Schema.Boolean;
|
|
29
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
30
|
+
}>;
|
|
31
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
32
|
+
readonly context: Schema.Struct<{
|
|
33
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
34
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
35
|
+
readonly sampled: Schema.Boolean;
|
|
36
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
37
|
+
}>;
|
|
38
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
39
|
+
}>>;
|
|
40
|
+
}>>;
|
|
41
|
+
}>;
|
|
42
|
+
type SessionConfiguredEvent = typeof SessionConfiguredEvent.Type;
|
|
6
43
|
/** Event type values for durable command lifecycle events. */
|
|
7
44
|
declare const commandAdmittedEventType: "CommandAdmitted";
|
|
8
45
|
declare const commandStartedEventType: "CommandStarted";
|
|
@@ -355,6 +392,300 @@ declare const CommandEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
355
392
|
}>>;
|
|
356
393
|
}>]>;
|
|
357
394
|
type CommandEvent = typeof CommandEvent.Type;
|
|
395
|
+
/** Durable reservation for the next run slot, committed before outbound delivery. */
|
|
396
|
+
declare const runSchedulingRequestedEventType: "RunSchedulingRequested";
|
|
397
|
+
declare const RunSchedulingRequestedPayload: Schema.Struct<{
|
|
398
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
399
|
+
readonly work: Schema.Union<readonly [Schema.TaggedStruct<"Command", {
|
|
400
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
401
|
+
}>, Schema.TaggedStruct<"Recovery", {
|
|
402
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
403
|
+
readonly interruptedRunId: Schema.brand<Schema.String, "RunId">;
|
|
404
|
+
readonly inputMessageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
|
|
405
|
+
}>]>;
|
|
406
|
+
}>;
|
|
407
|
+
type RunSchedulingRequestedPayload = typeof RunSchedulingRequestedPayload.Type;
|
|
408
|
+
declare const RunSchedulingRequestedEvent: Schema.Struct<{
|
|
409
|
+
readonly namespace: Schema.Literal<string>;
|
|
410
|
+
readonly type: Schema.Literal<"RunSchedulingRequested">;
|
|
411
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
412
|
+
readonly payload: Schema.Struct<{
|
|
413
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
414
|
+
readonly work: Schema.Union<readonly [Schema.TaggedStruct<"Command", {
|
|
415
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
416
|
+
}>, Schema.TaggedStruct<"Recovery", {
|
|
417
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
418
|
+
readonly interruptedRunId: Schema.brand<Schema.String, "RunId">;
|
|
419
|
+
readonly inputMessageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
|
|
420
|
+
}>]>;
|
|
421
|
+
}>;
|
|
422
|
+
readonly durability: Schema.Literal<"durable">;
|
|
423
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
424
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
425
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
426
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
427
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
428
|
+
readonly span: Schema.Struct<{
|
|
429
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
430
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
431
|
+
readonly sampled: Schema.Boolean;
|
|
432
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
433
|
+
}>;
|
|
434
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
435
|
+
readonly context: Schema.Struct<{
|
|
436
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
437
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
438
|
+
readonly sampled: Schema.Boolean;
|
|
439
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
440
|
+
}>;
|
|
441
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
442
|
+
}>>;
|
|
443
|
+
}>>;
|
|
444
|
+
}>;
|
|
445
|
+
type RunSchedulingRequestedEvent = typeof RunSchedulingRequestedEvent.Type;
|
|
446
|
+
/** Acknowledgment that the external authorizer durably accepted this request. */
|
|
447
|
+
declare const runSchedulingDeliveredEventType: "RunSchedulingDelivered";
|
|
448
|
+
declare const RunSchedulingDeliveredPayload: Schema.Struct<{
|
|
449
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
450
|
+
}>;
|
|
451
|
+
type RunSchedulingDeliveredPayload = typeof RunSchedulingDeliveredPayload.Type;
|
|
452
|
+
declare const RunSchedulingDeliveredEvent: Schema.Struct<{
|
|
453
|
+
readonly namespace: Schema.Literal<string>;
|
|
454
|
+
readonly type: Schema.Literal<"RunSchedulingDelivered">;
|
|
455
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
456
|
+
readonly payload: Schema.Struct<{
|
|
457
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
458
|
+
}>;
|
|
459
|
+
readonly durability: Schema.Literal<"durable">;
|
|
460
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
461
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
462
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
463
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
464
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
465
|
+
readonly span: Schema.Struct<{
|
|
466
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
467
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
468
|
+
readonly sampled: Schema.Boolean;
|
|
469
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
470
|
+
}>;
|
|
471
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
472
|
+
readonly context: Schema.Struct<{
|
|
473
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
474
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
475
|
+
readonly sampled: Schema.Boolean;
|
|
476
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
477
|
+
}>;
|
|
478
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
479
|
+
}>>;
|
|
480
|
+
}>>;
|
|
481
|
+
}>;
|
|
482
|
+
type RunSchedulingDeliveredEvent = typeof RunSchedulingDeliveredEvent.Type;
|
|
483
|
+
/** Revocation of a reservation whose work was cancelled, stopped, or superseded. */
|
|
484
|
+
declare const runSchedulingInvalidatedEventType: "RunSchedulingInvalidated";
|
|
485
|
+
declare const RunSchedulingInvalidatedPayload: Schema.Struct<{
|
|
486
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
487
|
+
readonly reason: Schema.Literals<readonly ["stopped", "interrupted", "message-cancelled", "ineligible"]>;
|
|
488
|
+
}>;
|
|
489
|
+
type RunSchedulingInvalidatedPayload = typeof RunSchedulingInvalidatedPayload.Type;
|
|
490
|
+
declare const RunSchedulingInvalidatedEvent: Schema.Struct<{
|
|
491
|
+
readonly namespace: Schema.Literal<string>;
|
|
492
|
+
readonly type: Schema.Literal<"RunSchedulingInvalidated">;
|
|
493
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
494
|
+
readonly payload: Schema.Struct<{
|
|
495
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
496
|
+
readonly reason: Schema.Literals<readonly ["stopped", "interrupted", "message-cancelled", "ineligible"]>;
|
|
497
|
+
}>;
|
|
498
|
+
readonly durability: Schema.Literal<"durable">;
|
|
499
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
500
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
501
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
502
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
503
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
504
|
+
readonly span: Schema.Struct<{
|
|
505
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
506
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
507
|
+
readonly sampled: Schema.Boolean;
|
|
508
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
509
|
+
}>;
|
|
510
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
511
|
+
readonly context: Schema.Struct<{
|
|
512
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
513
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
514
|
+
readonly sampled: Schema.Boolean;
|
|
515
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
516
|
+
}>;
|
|
517
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
518
|
+
}>>;
|
|
519
|
+
}>>;
|
|
520
|
+
}>;
|
|
521
|
+
type RunSchedulingInvalidatedEvent = typeof RunSchedulingInvalidatedEvent.Type;
|
|
522
|
+
/** Permission consumed atomically with RunStarted; never a standalone authorization. */
|
|
523
|
+
declare const runSchedulingGrantedEventType: "RunSchedulingGranted";
|
|
524
|
+
declare const RunSchedulingGrantedPayload: Schema.Struct<{
|
|
525
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
526
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
527
|
+
}>;
|
|
528
|
+
type RunSchedulingGrantedPayload = typeof RunSchedulingGrantedPayload.Type;
|
|
529
|
+
declare const RunSchedulingGrantedEvent: Schema.Struct<{
|
|
530
|
+
readonly namespace: Schema.Literal<string>;
|
|
531
|
+
readonly type: Schema.Literal<"RunSchedulingGranted">;
|
|
532
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
533
|
+
readonly payload: Schema.Struct<{
|
|
534
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
535
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
536
|
+
}>;
|
|
537
|
+
readonly durability: Schema.Literal<"durable">;
|
|
538
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
539
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
540
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
541
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
542
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
543
|
+
readonly span: Schema.Struct<{
|
|
544
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
545
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
546
|
+
readonly sampled: Schema.Boolean;
|
|
547
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
548
|
+
}>;
|
|
549
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
550
|
+
readonly context: Schema.Struct<{
|
|
551
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
552
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
553
|
+
readonly sampled: Schema.Boolean;
|
|
554
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
555
|
+
}>;
|
|
556
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
557
|
+
}>>;
|
|
558
|
+
}>>;
|
|
559
|
+
}>;
|
|
560
|
+
type RunSchedulingGrantedEvent = typeof RunSchedulingGrantedEvent.Type;
|
|
561
|
+
/** Framework facts for durable run authorization and its strict delivery acknowledgment. */
|
|
562
|
+
declare const RunSchedulingEvent: Schema.Union<readonly [Schema.Struct<{
|
|
563
|
+
readonly namespace: Schema.Literal<string>;
|
|
564
|
+
readonly type: Schema.Literal<"RunSchedulingRequested">;
|
|
565
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
566
|
+
readonly payload: Schema.Struct<{
|
|
567
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
568
|
+
readonly work: Schema.Union<readonly [Schema.TaggedStruct<"Command", {
|
|
569
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
570
|
+
}>, Schema.TaggedStruct<"Recovery", {
|
|
571
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
572
|
+
readonly interruptedRunId: Schema.brand<Schema.String, "RunId">;
|
|
573
|
+
readonly inputMessageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
|
|
574
|
+
}>]>;
|
|
575
|
+
}>;
|
|
576
|
+
readonly durability: Schema.Literal<"durable">;
|
|
577
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
578
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
579
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
580
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
581
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
582
|
+
readonly span: Schema.Struct<{
|
|
583
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
584
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
585
|
+
readonly sampled: Schema.Boolean;
|
|
586
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
587
|
+
}>;
|
|
588
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
589
|
+
readonly context: Schema.Struct<{
|
|
590
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
591
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
592
|
+
readonly sampled: Schema.Boolean;
|
|
593
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
594
|
+
}>;
|
|
595
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
596
|
+
}>>;
|
|
597
|
+
}>>;
|
|
598
|
+
}>, Schema.Struct<{
|
|
599
|
+
readonly namespace: Schema.Literal<string>;
|
|
600
|
+
readonly type: Schema.Literal<"RunSchedulingDelivered">;
|
|
601
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
602
|
+
readonly payload: Schema.Struct<{
|
|
603
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
604
|
+
}>;
|
|
605
|
+
readonly durability: Schema.Literal<"durable">;
|
|
606
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
607
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
608
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
609
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
610
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
611
|
+
readonly span: Schema.Struct<{
|
|
612
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
613
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
614
|
+
readonly sampled: Schema.Boolean;
|
|
615
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
616
|
+
}>;
|
|
617
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
618
|
+
readonly context: Schema.Struct<{
|
|
619
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
620
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
621
|
+
readonly sampled: Schema.Boolean;
|
|
622
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
623
|
+
}>;
|
|
624
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
625
|
+
}>>;
|
|
626
|
+
}>>;
|
|
627
|
+
}>, Schema.Struct<{
|
|
628
|
+
readonly namespace: Schema.Literal<string>;
|
|
629
|
+
readonly type: Schema.Literal<"RunSchedulingInvalidated">;
|
|
630
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
631
|
+
readonly payload: Schema.Struct<{
|
|
632
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
633
|
+
readonly reason: Schema.Literals<readonly ["stopped", "interrupted", "message-cancelled", "ineligible"]>;
|
|
634
|
+
}>;
|
|
635
|
+
readonly durability: Schema.Literal<"durable">;
|
|
636
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
637
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
638
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
639
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
640
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
641
|
+
readonly span: Schema.Struct<{
|
|
642
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
643
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
644
|
+
readonly sampled: Schema.Boolean;
|
|
645
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
646
|
+
}>;
|
|
647
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
648
|
+
readonly context: Schema.Struct<{
|
|
649
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
650
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
651
|
+
readonly sampled: Schema.Boolean;
|
|
652
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
653
|
+
}>;
|
|
654
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
655
|
+
}>>;
|
|
656
|
+
}>>;
|
|
657
|
+
}>, Schema.Struct<{
|
|
658
|
+
readonly namespace: Schema.Literal<string>;
|
|
659
|
+
readonly type: Schema.Literal<"RunSchedulingGranted">;
|
|
660
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
661
|
+
readonly payload: Schema.Struct<{
|
|
662
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
663
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
664
|
+
}>;
|
|
665
|
+
readonly durability: Schema.Literal<"durable">;
|
|
666
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
667
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
668
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
669
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
670
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
671
|
+
readonly span: Schema.Struct<{
|
|
672
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
673
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
674
|
+
readonly sampled: Schema.Boolean;
|
|
675
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
676
|
+
}>;
|
|
677
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
678
|
+
readonly context: Schema.Struct<{
|
|
679
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
680
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
681
|
+
readonly sampled: Schema.Boolean;
|
|
682
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
683
|
+
}>;
|
|
684
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
685
|
+
}>>;
|
|
686
|
+
}>>;
|
|
687
|
+
}>]>;
|
|
688
|
+
type RunSchedulingEvent = typeof RunSchedulingEvent.Type;
|
|
358
689
|
/** Event type values for durable message lifecycle events. */
|
|
359
690
|
declare const systemMessageCommittedEventType: "SystemMessageCommitted";
|
|
360
691
|
declare const userMessageCommittedEventType: "UserMessageCommitted";
|
|
@@ -366,6 +697,7 @@ declare const userMessageCancelledEventType: "UserMessageCancelled";
|
|
|
366
697
|
declare const messageQueuePausedEventType: "MessageQueuePaused";
|
|
367
698
|
declare const pendingMessagesPausedEventType: "PendingMessagesPaused";
|
|
368
699
|
declare const assistantMessageCommittedEventType: "AssistantMessageCommitted";
|
|
700
|
+
declare const assistantMessageImportedEventType: "AssistantMessageImported";
|
|
369
701
|
declare const assistantPartialCommittedEventType: "AssistantPartialCommitted";
|
|
370
702
|
/** Semantic assistant content derived from canonical prompt parts for query convenience. */
|
|
371
703
|
declare const AssistantMessageContent: Schema.Struct<{
|
|
@@ -908,23 +1240,34 @@ declare const MessageQueuePausedEvent: Schema.Struct<{
|
|
|
908
1240
|
}>>;
|
|
909
1241
|
}>;
|
|
910
1242
|
type MessageQueuePausedEvent = typeof MessageQueuePausedEvent.Type;
|
|
911
|
-
|
|
912
|
-
|
|
1243
|
+
/** A pause refers to the running lifecycle or to permission still waiting before a run. */
|
|
1244
|
+
declare const PendingMessagesPausedPayload: Schema.Union<readonly [Schema.Struct<{
|
|
913
1245
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1246
|
+
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
914
1247
|
readonly messageIds: Schema.NonEmptyArray<Schema.brand<Schema.String, "MessageId">>;
|
|
915
1248
|
readonly reason: Schema.Literal<"user-interrupted">;
|
|
916
|
-
}
|
|
1249
|
+
}>, Schema.Struct<{
|
|
1250
|
+
readonly runRequestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
1251
|
+
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
1252
|
+
readonly messageIds: Schema.NonEmptyArray<Schema.brand<Schema.String, "MessageId">>;
|
|
1253
|
+
readonly reason: Schema.Literal<"user-interrupted">;
|
|
1254
|
+
}>]>;
|
|
917
1255
|
type PendingMessagesPausedPayload = typeof PendingMessagesPausedPayload.Type;
|
|
918
1256
|
declare const PendingMessagesPausedEvent: Schema.Struct<{
|
|
919
1257
|
readonly namespace: Schema.Literal<string>;
|
|
920
1258
|
readonly type: Schema.Literal<"PendingMessagesPaused">;
|
|
921
1259
|
readonly schemaVersion: Schema.Literal<number>;
|
|
922
|
-
readonly payload: Schema.Struct<{
|
|
923
|
-
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
1260
|
+
readonly payload: Schema.Union<readonly [Schema.Struct<{
|
|
924
1261
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1262
|
+
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
925
1263
|
readonly messageIds: Schema.NonEmptyArray<Schema.brand<Schema.String, "MessageId">>;
|
|
926
1264
|
readonly reason: Schema.Literal<"user-interrupted">;
|
|
927
|
-
}
|
|
1265
|
+
}>, Schema.Struct<{
|
|
1266
|
+
readonly runRequestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
1267
|
+
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
1268
|
+
readonly messageIds: Schema.NonEmptyArray<Schema.brand<Schema.String, "MessageId">>;
|
|
1269
|
+
readonly reason: Schema.Literal<"user-interrupted">;
|
|
1270
|
+
}>]>;
|
|
928
1271
|
readonly durability: Schema.Literal<"durable">;
|
|
929
1272
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
930
1273
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
@@ -1071,6 +1414,128 @@ declare const AssistantMessageCommittedEvent: Schema.Struct<{
|
|
|
1071
1414
|
}>>;
|
|
1072
1415
|
}>;
|
|
1073
1416
|
type AssistantMessageCommittedEvent = typeof AssistantMessageCommittedEvent.Type;
|
|
1417
|
+
/** Payload recorded when pre-existing assistant context is imported from an external transport. */
|
|
1418
|
+
declare const AssistantMessageImportedPayload: Schema.Struct<{
|
|
1419
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
1420
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1421
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1422
|
+
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
1423
|
+
readonly promptParts: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1424
|
+
readonly type: Schema.Literal<"text">;
|
|
1425
|
+
readonly text: Schema.String;
|
|
1426
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1427
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1428
|
+
}>, Schema.Struct<{
|
|
1429
|
+
readonly type: Schema.Literal<"file">;
|
|
1430
|
+
readonly mediaType: Schema.String;
|
|
1431
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
1432
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
1433
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1434
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1435
|
+
}>, Schema.Struct<{
|
|
1436
|
+
readonly type: Schema.Literal<"reasoning">;
|
|
1437
|
+
readonly text: Schema.String;
|
|
1438
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1439
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1440
|
+
}>, Schema.Struct<{
|
|
1441
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
1442
|
+
readonly id: Schema.String;
|
|
1443
|
+
readonly name: Schema.String;
|
|
1444
|
+
readonly params: Schema.Unknown;
|
|
1445
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
1446
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1447
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1448
|
+
}>, Schema.Struct<{
|
|
1449
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
1450
|
+
readonly id: Schema.String;
|
|
1451
|
+
readonly name: Schema.String;
|
|
1452
|
+
readonly isFailure: Schema.Boolean;
|
|
1453
|
+
readonly result: Schema.Unknown;
|
|
1454
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1455
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1456
|
+
}>, Schema.Struct<{
|
|
1457
|
+
readonly type: Schema.Literal<"tool-approval-request">;
|
|
1458
|
+
readonly approvalId: Schema.String;
|
|
1459
|
+
readonly toolCallId: Schema.String;
|
|
1460
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1461
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1462
|
+
}>]>>;
|
|
1463
|
+
}>;
|
|
1464
|
+
type AssistantMessageImportedPayload = typeof AssistantMessageImportedPayload.Type;
|
|
1465
|
+
declare const AssistantMessageImportedEvent: Schema.Struct<{
|
|
1466
|
+
readonly namespace: Schema.Literal<string>;
|
|
1467
|
+
readonly type: Schema.Literal<"AssistantMessageImported">;
|
|
1468
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1469
|
+
readonly payload: Schema.Struct<{
|
|
1470
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
1471
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1472
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1473
|
+
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
1474
|
+
readonly promptParts: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1475
|
+
readonly type: Schema.Literal<"text">;
|
|
1476
|
+
readonly text: Schema.String;
|
|
1477
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1478
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1479
|
+
}>, Schema.Struct<{
|
|
1480
|
+
readonly type: Schema.Literal<"file">;
|
|
1481
|
+
readonly mediaType: Schema.String;
|
|
1482
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
1483
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
1484
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1485
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1486
|
+
}>, Schema.Struct<{
|
|
1487
|
+
readonly type: Schema.Literal<"reasoning">;
|
|
1488
|
+
readonly text: Schema.String;
|
|
1489
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1490
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1491
|
+
}>, Schema.Struct<{
|
|
1492
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
1493
|
+
readonly id: Schema.String;
|
|
1494
|
+
readonly name: Schema.String;
|
|
1495
|
+
readonly params: Schema.Unknown;
|
|
1496
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
1497
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1498
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1499
|
+
}>, Schema.Struct<{
|
|
1500
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
1501
|
+
readonly id: Schema.String;
|
|
1502
|
+
readonly name: Schema.String;
|
|
1503
|
+
readonly isFailure: Schema.Boolean;
|
|
1504
|
+
readonly result: Schema.Unknown;
|
|
1505
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1506
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1507
|
+
}>, Schema.Struct<{
|
|
1508
|
+
readonly type: Schema.Literal<"tool-approval-request">;
|
|
1509
|
+
readonly approvalId: Schema.String;
|
|
1510
|
+
readonly toolCallId: Schema.String;
|
|
1511
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1512
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1513
|
+
}>]>>;
|
|
1514
|
+
}>;
|
|
1515
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1516
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1517
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1518
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1519
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1520
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1521
|
+
readonly span: Schema.Struct<{
|
|
1522
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1523
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1524
|
+
readonly sampled: Schema.Boolean;
|
|
1525
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1526
|
+
}>;
|
|
1527
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1528
|
+
readonly context: Schema.Struct<{
|
|
1529
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1530
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1531
|
+
readonly sampled: Schema.Boolean;
|
|
1532
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1533
|
+
}>;
|
|
1534
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1535
|
+
}>>;
|
|
1536
|
+
}>>;
|
|
1537
|
+
}>;
|
|
1538
|
+
type AssistantMessageImportedEvent = typeof AssistantMessageImportedEvent.Type;
|
|
1074
1539
|
/** Payload recorded when a partial assistant message is preserved durably. */
|
|
1075
1540
|
declare const AssistantPartialCommittedPayload: Schema.Struct<{
|
|
1076
1541
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
@@ -1475,7 +1940,44 @@ declare const MessageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1475
1940
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1476
1941
|
readonly messageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
|
|
1477
1942
|
readonly reason: Schema.Literal<"user-interrupted">;
|
|
1478
|
-
}>;
|
|
1943
|
+
}>;
|
|
1944
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1945
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1946
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1947
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1948
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1949
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1950
|
+
readonly span: Schema.Struct<{
|
|
1951
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1952
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1953
|
+
readonly sampled: Schema.Boolean;
|
|
1954
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1955
|
+
}>;
|
|
1956
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1957
|
+
readonly context: Schema.Struct<{
|
|
1958
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1959
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1960
|
+
readonly sampled: Schema.Boolean;
|
|
1961
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1962
|
+
}>;
|
|
1963
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1964
|
+
}>>;
|
|
1965
|
+
}>>;
|
|
1966
|
+
}>, Schema.Struct<{
|
|
1967
|
+
readonly namespace: Schema.Literal<string>;
|
|
1968
|
+
readonly type: Schema.Literal<"PendingMessagesPaused">;
|
|
1969
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1970
|
+
readonly payload: Schema.Union<readonly [Schema.Struct<{
|
|
1971
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1972
|
+
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
1973
|
+
readonly messageIds: Schema.NonEmptyArray<Schema.brand<Schema.String, "MessageId">>;
|
|
1974
|
+
readonly reason: Schema.Literal<"user-interrupted">;
|
|
1975
|
+
}>, Schema.Struct<{
|
|
1976
|
+
readonly runRequestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
1977
|
+
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
1978
|
+
readonly messageIds: Schema.NonEmptyArray<Schema.brand<Schema.String, "MessageId">>;
|
|
1979
|
+
readonly reason: Schema.Literal<"user-interrupted">;
|
|
1980
|
+
}>]>;
|
|
1479
1981
|
readonly durability: Schema.Literal<"durable">;
|
|
1480
1982
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1481
1983
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
@@ -1500,13 +2002,53 @@ declare const MessageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1500
2002
|
}>>;
|
|
1501
2003
|
}>, Schema.Struct<{
|
|
1502
2004
|
readonly namespace: Schema.Literal<string>;
|
|
1503
|
-
readonly type: Schema.Literal<"
|
|
2005
|
+
readonly type: Schema.Literal<"AssistantMessageCommitted">;
|
|
1504
2006
|
readonly schemaVersion: Schema.Literal<number>;
|
|
1505
2007
|
readonly payload: Schema.Struct<{
|
|
1506
|
-
readonly
|
|
2008
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
1507
2009
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1508
|
-
readonly
|
|
1509
|
-
readonly
|
|
2010
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
2011
|
+
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
2012
|
+
readonly promptParts: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
2013
|
+
readonly type: Schema.Literal<"text">;
|
|
2014
|
+
readonly text: Schema.String;
|
|
2015
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
2016
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
2017
|
+
}>, Schema.Struct<{
|
|
2018
|
+
readonly type: Schema.Literal<"file">;
|
|
2019
|
+
readonly mediaType: Schema.String;
|
|
2020
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
2021
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
2022
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
2023
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
2024
|
+
}>, Schema.Struct<{
|
|
2025
|
+
readonly type: Schema.Literal<"reasoning">;
|
|
2026
|
+
readonly text: Schema.String;
|
|
2027
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
2028
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
2029
|
+
}>, Schema.Struct<{
|
|
2030
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
2031
|
+
readonly id: Schema.String;
|
|
2032
|
+
readonly name: Schema.String;
|
|
2033
|
+
readonly params: Schema.Unknown;
|
|
2034
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
2035
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
2036
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
2037
|
+
}>, Schema.Struct<{
|
|
2038
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
2039
|
+
readonly id: Schema.String;
|
|
2040
|
+
readonly name: Schema.String;
|
|
2041
|
+
readonly isFailure: Schema.Boolean;
|
|
2042
|
+
readonly result: Schema.Unknown;
|
|
2043
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
2044
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
2045
|
+
}>, Schema.Struct<{
|
|
2046
|
+
readonly type: Schema.Literal<"tool-approval-request">;
|
|
2047
|
+
readonly approvalId: Schema.String;
|
|
2048
|
+
readonly toolCallId: Schema.String;
|
|
2049
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
2050
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
2051
|
+
}>]>>;
|
|
1510
2052
|
}>;
|
|
1511
2053
|
readonly durability: Schema.Literal<"durable">;
|
|
1512
2054
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -1532,7 +2074,7 @@ declare const MessageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1532
2074
|
}>>;
|
|
1533
2075
|
}>, Schema.Struct<{
|
|
1534
2076
|
readonly namespace: Schema.Literal<string>;
|
|
1535
|
-
readonly type: Schema.Literal<"
|
|
2077
|
+
readonly type: Schema.Literal<"AssistantMessageImported">;
|
|
1536
2078
|
readonly schemaVersion: Schema.Literal<number>;
|
|
1537
2079
|
readonly payload: Schema.Struct<{
|
|
1538
2080
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
@@ -2184,6 +2726,7 @@ declare const TurnCompletedPayload: Schema.Struct<{
|
|
|
2184
2726
|
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
2185
2727
|
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
2186
2728
|
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
2729
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
2187
2730
|
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
2188
2731
|
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
2189
2732
|
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
@@ -2200,6 +2743,7 @@ declare const TurnCompletedEvent: Schema.Struct<{
|
|
|
2200
2743
|
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
2201
2744
|
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
2202
2745
|
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
2746
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
2203
2747
|
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
2204
2748
|
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
2205
2749
|
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
@@ -2362,6 +2906,7 @@ declare const TurnEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
2362
2906
|
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
2363
2907
|
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
2364
2908
|
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
2909
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
2365
2910
|
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
2366
2911
|
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
2367
2912
|
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
@@ -2510,6 +3055,7 @@ declare const InferenceCompletedPayload: Schema.Struct<{
|
|
|
2510
3055
|
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
2511
3056
|
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
2512
3057
|
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
3058
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
2513
3059
|
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
2514
3060
|
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
2515
3061
|
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
@@ -2530,6 +3076,7 @@ declare const InferenceCompletedEvent: Schema.Struct<{
|
|
|
2530
3076
|
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
2531
3077
|
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
2532
3078
|
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
3079
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
2533
3080
|
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
2534
3081
|
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
2535
3082
|
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
@@ -2655,6 +3202,7 @@ declare const InferenceEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
2655
3202
|
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
2656
3203
|
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
2657
3204
|
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
3205
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
2658
3206
|
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
2659
3207
|
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
2660
3208
|
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
@@ -3592,6 +4140,19 @@ type SummaryCreatedEvent = typeof SummaryCreatedEvent.Type;
|
|
|
3592
4140
|
/** Payload recorded when compaction completes. */
|
|
3593
4141
|
declare const CompactionCompletedPayload: Schema.Struct<{
|
|
3594
4142
|
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
4143
|
+
readonly modelSelection: Schema.optionalKey<Schema.Struct<{
|
|
4144
|
+
readonly provider: Schema.NonEmptyString;
|
|
4145
|
+
readonly modelId: Schema.NonEmptyString;
|
|
4146
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
4147
|
+
}>>;
|
|
4148
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
4149
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
4150
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4151
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4152
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
4153
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
4154
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
4155
|
+
}>>;
|
|
3595
4156
|
}>;
|
|
3596
4157
|
type CompactionCompletedPayload = typeof CompactionCompletedPayload.Type;
|
|
3597
4158
|
declare const CompactionCompletedEvent: Schema.Struct<{
|
|
@@ -3600,6 +4161,19 @@ declare const CompactionCompletedEvent: Schema.Struct<{
|
|
|
3600
4161
|
readonly schemaVersion: Schema.Literal<number>;
|
|
3601
4162
|
readonly payload: Schema.Struct<{
|
|
3602
4163
|
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
4164
|
+
readonly modelSelection: Schema.optionalKey<Schema.Struct<{
|
|
4165
|
+
readonly provider: Schema.NonEmptyString;
|
|
4166
|
+
readonly modelId: Schema.NonEmptyString;
|
|
4167
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
4168
|
+
}>>;
|
|
4169
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
4170
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
4171
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4172
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4173
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
4174
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
4175
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
4176
|
+
}>>;
|
|
3603
4177
|
}>;
|
|
3604
4178
|
readonly durability: Schema.Literal<"durable">;
|
|
3605
4179
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -3675,6 +4249,19 @@ declare const CompactionFailedPayload: Schema.Struct<{
|
|
|
3675
4249
|
readonly code: Schema.optionalKey<Schema.String>;
|
|
3676
4250
|
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
3677
4251
|
}>;
|
|
4252
|
+
readonly modelSelection: Schema.optionalKey<Schema.Struct<{
|
|
4253
|
+
readonly provider: Schema.NonEmptyString;
|
|
4254
|
+
readonly modelId: Schema.NonEmptyString;
|
|
4255
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
4256
|
+
}>>;
|
|
4257
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
4258
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
4259
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4260
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4261
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
4262
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
4263
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
4264
|
+
}>>;
|
|
3678
4265
|
}>;
|
|
3679
4266
|
type CompactionFailedPayload = typeof CompactionFailedPayload.Type;
|
|
3680
4267
|
declare const CompactionFailedEvent: Schema.Struct<{
|
|
@@ -3688,6 +4275,19 @@ declare const CompactionFailedEvent: Schema.Struct<{
|
|
|
3688
4275
|
readonly code: Schema.optionalKey<Schema.String>;
|
|
3689
4276
|
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
3690
4277
|
}>;
|
|
4278
|
+
readonly modelSelection: Schema.optionalKey<Schema.Struct<{
|
|
4279
|
+
readonly provider: Schema.NonEmptyString;
|
|
4280
|
+
readonly modelId: Schema.NonEmptyString;
|
|
4281
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
4282
|
+
}>>;
|
|
4283
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
4284
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
4285
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4286
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4287
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
4288
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
4289
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
4290
|
+
}>>;
|
|
3691
4291
|
}>;
|
|
3692
4292
|
readonly durability: Schema.Literal<"durable">;
|
|
3693
4293
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -3843,6 +4443,19 @@ declare const ContextAndCompactionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
3843
4443
|
readonly schemaVersion: Schema.Literal<number>;
|
|
3844
4444
|
readonly payload: Schema.Struct<{
|
|
3845
4445
|
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
4446
|
+
readonly modelSelection: Schema.optionalKey<Schema.Struct<{
|
|
4447
|
+
readonly provider: Schema.NonEmptyString;
|
|
4448
|
+
readonly modelId: Schema.NonEmptyString;
|
|
4449
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
4450
|
+
}>>;
|
|
4451
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
4452
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
4453
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4454
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4455
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
4456
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
4457
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
4458
|
+
}>>;
|
|
3846
4459
|
}>;
|
|
3847
4460
|
readonly durability: Schema.Literal<"durable">;
|
|
3848
4461
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -3909,6 +4522,19 @@ declare const ContextAndCompactionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
3909
4522
|
readonly code: Schema.optionalKey<Schema.String>;
|
|
3910
4523
|
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
3911
4524
|
}>;
|
|
4525
|
+
readonly modelSelection: Schema.optionalKey<Schema.Struct<{
|
|
4526
|
+
readonly provider: Schema.NonEmptyString;
|
|
4527
|
+
readonly modelId: Schema.NonEmptyString;
|
|
4528
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
4529
|
+
}>>;
|
|
4530
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
4531
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
4532
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4533
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4534
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
4535
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
4536
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
4537
|
+
}>>;
|
|
3912
4538
|
}>;
|
|
3913
4539
|
readonly durability: Schema.Literal<"durable">;
|
|
3914
4540
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -4155,10 +4781,168 @@ declare const BaseStateEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
4155
4781
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
4156
4782
|
}>>;
|
|
4157
4783
|
}>>;
|
|
4158
|
-
}>]>;
|
|
4159
|
-
type BaseStateEvent = typeof BaseStateEvent.Type;
|
|
4160
|
-
/** Built-in durable event union for framework-owned session facts. */
|
|
4161
|
-
declare const EDADurableEvent: Schema.Union<readonly [Schema.
|
|
4784
|
+
}>]>;
|
|
4785
|
+
type BaseStateEvent = typeof BaseStateEvent.Type;
|
|
4786
|
+
/** Built-in durable event union for framework-owned session facts. */
|
|
4787
|
+
declare const EDADurableEvent: Schema.Union<readonly [Schema.Struct<{
|
|
4788
|
+
readonly namespace: Schema.Literal<string>;
|
|
4789
|
+
readonly type: Schema.Literal<"SessionConfigured">;
|
|
4790
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
4791
|
+
readonly payload: Schema.Struct<{
|
|
4792
|
+
readonly modelSelection: Schema.Struct<{
|
|
4793
|
+
readonly provider: Schema.NonEmptyString;
|
|
4794
|
+
readonly modelId: Schema.NonEmptyString;
|
|
4795
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
4796
|
+
}>;
|
|
4797
|
+
}>;
|
|
4798
|
+
readonly durability: Schema.Literal<"durable">;
|
|
4799
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
4800
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
4801
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
4802
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
4803
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
4804
|
+
readonly span: Schema.Struct<{
|
|
4805
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4806
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4807
|
+
readonly sampled: Schema.Boolean;
|
|
4808
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4809
|
+
}>;
|
|
4810
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
4811
|
+
readonly context: Schema.Struct<{
|
|
4812
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4813
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4814
|
+
readonly sampled: Schema.Boolean;
|
|
4815
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4816
|
+
}>;
|
|
4817
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
4818
|
+
}>>;
|
|
4819
|
+
}>>;
|
|
4820
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
4821
|
+
readonly namespace: Schema.Literal<string>;
|
|
4822
|
+
readonly type: Schema.Literal<"RunSchedulingRequested">;
|
|
4823
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
4824
|
+
readonly payload: Schema.Struct<{
|
|
4825
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
4826
|
+
readonly work: Schema.Union<readonly [Schema.TaggedStruct<"Command", {
|
|
4827
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
4828
|
+
}>, Schema.TaggedStruct<"Recovery", {
|
|
4829
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
4830
|
+
readonly interruptedRunId: Schema.brand<Schema.String, "RunId">;
|
|
4831
|
+
readonly inputMessageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
|
|
4832
|
+
}>]>;
|
|
4833
|
+
}>;
|
|
4834
|
+
readonly durability: Schema.Literal<"durable">;
|
|
4835
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
4836
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
4837
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
4838
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
4839
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
4840
|
+
readonly span: Schema.Struct<{
|
|
4841
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4842
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4843
|
+
readonly sampled: Schema.Boolean;
|
|
4844
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4845
|
+
}>;
|
|
4846
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
4847
|
+
readonly context: Schema.Struct<{
|
|
4848
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4849
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4850
|
+
readonly sampled: Schema.Boolean;
|
|
4851
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4852
|
+
}>;
|
|
4853
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
4854
|
+
}>>;
|
|
4855
|
+
}>>;
|
|
4856
|
+
}>, Schema.Struct<{
|
|
4857
|
+
readonly namespace: Schema.Literal<string>;
|
|
4858
|
+
readonly type: Schema.Literal<"RunSchedulingDelivered">;
|
|
4859
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
4860
|
+
readonly payload: Schema.Struct<{
|
|
4861
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
4862
|
+
}>;
|
|
4863
|
+
readonly durability: Schema.Literal<"durable">;
|
|
4864
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
4865
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
4866
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
4867
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
4868
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
4869
|
+
readonly span: Schema.Struct<{
|
|
4870
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4871
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4872
|
+
readonly sampled: Schema.Boolean;
|
|
4873
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4874
|
+
}>;
|
|
4875
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
4876
|
+
readonly context: Schema.Struct<{
|
|
4877
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4878
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4879
|
+
readonly sampled: Schema.Boolean;
|
|
4880
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4881
|
+
}>;
|
|
4882
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
4883
|
+
}>>;
|
|
4884
|
+
}>>;
|
|
4885
|
+
}>, Schema.Struct<{
|
|
4886
|
+
readonly namespace: Schema.Literal<string>;
|
|
4887
|
+
readonly type: Schema.Literal<"RunSchedulingInvalidated">;
|
|
4888
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
4889
|
+
readonly payload: Schema.Struct<{
|
|
4890
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
4891
|
+
readonly reason: Schema.Literals<readonly ["stopped", "interrupted", "message-cancelled", "ineligible"]>;
|
|
4892
|
+
}>;
|
|
4893
|
+
readonly durability: Schema.Literal<"durable">;
|
|
4894
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
4895
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
4896
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
4897
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
4898
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
4899
|
+
readonly span: Schema.Struct<{
|
|
4900
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4901
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4902
|
+
readonly sampled: Schema.Boolean;
|
|
4903
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4904
|
+
}>;
|
|
4905
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
4906
|
+
readonly context: Schema.Struct<{
|
|
4907
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4908
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4909
|
+
readonly sampled: Schema.Boolean;
|
|
4910
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4911
|
+
}>;
|
|
4912
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
4913
|
+
}>>;
|
|
4914
|
+
}>>;
|
|
4915
|
+
}>, Schema.Struct<{
|
|
4916
|
+
readonly namespace: Schema.Literal<string>;
|
|
4917
|
+
readonly type: Schema.Literal<"RunSchedulingGranted">;
|
|
4918
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
4919
|
+
readonly payload: Schema.Struct<{
|
|
4920
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
4921
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
4922
|
+
}>;
|
|
4923
|
+
readonly durability: Schema.Literal<"durable">;
|
|
4924
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
4925
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
4926
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
4927
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
4928
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
4929
|
+
readonly span: Schema.Struct<{
|
|
4930
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4931
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4932
|
+
readonly sampled: Schema.Boolean;
|
|
4933
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4934
|
+
}>;
|
|
4935
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
4936
|
+
readonly context: Schema.Struct<{
|
|
4937
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4938
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4939
|
+
readonly sampled: Schema.Boolean;
|
|
4940
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4941
|
+
}>;
|
|
4942
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
4943
|
+
}>>;
|
|
4944
|
+
}>>;
|
|
4945
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4162
4946
|
readonly namespace: Schema.Literal<string>;
|
|
4163
4947
|
readonly type: Schema.Literal<"CommandAdmitted">;
|
|
4164
4948
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -4615,12 +5399,17 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
4615
5399
|
readonly namespace: Schema.Literal<string>;
|
|
4616
5400
|
readonly type: Schema.Literal<"PendingMessagesPaused">;
|
|
4617
5401
|
readonly schemaVersion: Schema.Literal<number>;
|
|
4618
|
-
readonly payload: Schema.Struct<{
|
|
4619
|
-
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
5402
|
+
readonly payload: Schema.Union<readonly [Schema.Struct<{
|
|
4620
5403
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
5404
|
+
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
4621
5405
|
readonly messageIds: Schema.NonEmptyArray<Schema.brand<Schema.String, "MessageId">>;
|
|
4622
5406
|
readonly reason: Schema.Literal<"user-interrupted">;
|
|
4623
|
-
}
|
|
5407
|
+
}>, Schema.Struct<{
|
|
5408
|
+
readonly runRequestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
5409
|
+
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
5410
|
+
readonly messageIds: Schema.NonEmptyArray<Schema.brand<Schema.String, "MessageId">>;
|
|
5411
|
+
readonly reason: Schema.Literal<"user-interrupted">;
|
|
5412
|
+
}>]>;
|
|
4624
5413
|
readonly durability: Schema.Literal<"durable">;
|
|
4625
5414
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
4626
5415
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
@@ -4715,6 +5504,78 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
4715
5504
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
4716
5505
|
}>>;
|
|
4717
5506
|
}>>;
|
|
5507
|
+
}>, Schema.Struct<{
|
|
5508
|
+
readonly namespace: Schema.Literal<string>;
|
|
5509
|
+
readonly type: Schema.Literal<"AssistantMessageImported">;
|
|
5510
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
5511
|
+
readonly payload: Schema.Struct<{
|
|
5512
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
5513
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
5514
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
5515
|
+
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
5516
|
+
readonly promptParts: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
5517
|
+
readonly type: Schema.Literal<"text">;
|
|
5518
|
+
readonly text: Schema.String;
|
|
5519
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5520
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5521
|
+
}>, Schema.Struct<{
|
|
5522
|
+
readonly type: Schema.Literal<"file">;
|
|
5523
|
+
readonly mediaType: Schema.String;
|
|
5524
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
5525
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
5526
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5527
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5528
|
+
}>, Schema.Struct<{
|
|
5529
|
+
readonly type: Schema.Literal<"reasoning">;
|
|
5530
|
+
readonly text: Schema.String;
|
|
5531
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5532
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5533
|
+
}>, Schema.Struct<{
|
|
5534
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
5535
|
+
readonly id: Schema.String;
|
|
5536
|
+
readonly name: Schema.String;
|
|
5537
|
+
readonly params: Schema.Unknown;
|
|
5538
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
5539
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5540
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5541
|
+
}>, Schema.Struct<{
|
|
5542
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
5543
|
+
readonly id: Schema.String;
|
|
5544
|
+
readonly name: Schema.String;
|
|
5545
|
+
readonly isFailure: Schema.Boolean;
|
|
5546
|
+
readonly result: Schema.Unknown;
|
|
5547
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5548
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5549
|
+
}>, Schema.Struct<{
|
|
5550
|
+
readonly type: Schema.Literal<"tool-approval-request">;
|
|
5551
|
+
readonly approvalId: Schema.String;
|
|
5552
|
+
readonly toolCallId: Schema.String;
|
|
5553
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5554
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5555
|
+
}>]>>;
|
|
5556
|
+
}>;
|
|
5557
|
+
readonly durability: Schema.Literal<"durable">;
|
|
5558
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
5559
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
5560
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
5561
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
5562
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
5563
|
+
readonly span: Schema.Struct<{
|
|
5564
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5565
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5566
|
+
readonly sampled: Schema.Boolean;
|
|
5567
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5568
|
+
}>;
|
|
5569
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
5570
|
+
readonly context: Schema.Struct<{
|
|
5571
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5572
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5573
|
+
readonly sampled: Schema.Boolean;
|
|
5574
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5575
|
+
}>;
|
|
5576
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5577
|
+
}>>;
|
|
5578
|
+
}>>;
|
|
4718
5579
|
}>, Schema.Struct<{
|
|
4719
5580
|
readonly namespace: Schema.Literal<string>;
|
|
4720
5581
|
readonly type: Schema.Literal<"AssistantPartialCommitted">;
|
|
@@ -5008,6 +5869,7 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5008
5869
|
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
5009
5870
|
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
5010
5871
|
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
5872
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
5011
5873
|
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
5012
5874
|
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
5013
5875
|
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
@@ -5144,6 +6006,7 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5144
6006
|
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
5145
6007
|
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
5146
6008
|
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
6009
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
5147
6010
|
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
5148
6011
|
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
5149
6012
|
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
@@ -5364,28 +6227,181 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5364
6227
|
}>>;
|
|
5365
6228
|
}>, Schema.Struct<{
|
|
5366
6229
|
readonly namespace: Schema.Literal<string>;
|
|
5367
|
-
readonly type: Schema.Literal<"ToolCallFailed">;
|
|
6230
|
+
readonly type: Schema.Literal<"ToolCallFailed">;
|
|
6231
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
6232
|
+
readonly payload: Schema.Struct<{
|
|
6233
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
6234
|
+
readonly error: Schema.optionalKey<Schema.Struct<{
|
|
6235
|
+
readonly message: Schema.String;
|
|
6236
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
6237
|
+
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
6238
|
+
}>>;
|
|
6239
|
+
readonly promptPart: Schema.Struct<{
|
|
6240
|
+
readonly isFailure: Schema.Literal<true>;
|
|
6241
|
+
readonly result: Schema.Struct<{
|
|
6242
|
+
readonly message: Schema.String;
|
|
6243
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
6244
|
+
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
6245
|
+
}>;
|
|
6246
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
6247
|
+
readonly name: Schema.NonEmptyString;
|
|
6248
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
6249
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
6250
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
6251
|
+
}>;
|
|
6252
|
+
}>;
|
|
6253
|
+
readonly durability: Schema.Literal<"durable">;
|
|
6254
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
6255
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
6256
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
6257
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
6258
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
6259
|
+
readonly span: Schema.Struct<{
|
|
6260
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
6261
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
6262
|
+
readonly sampled: Schema.Boolean;
|
|
6263
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
6264
|
+
}>;
|
|
6265
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
6266
|
+
readonly context: Schema.Struct<{
|
|
6267
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
6268
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
6269
|
+
readonly sampled: Schema.Boolean;
|
|
6270
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
6271
|
+
}>;
|
|
6272
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
6273
|
+
}>>;
|
|
6274
|
+
}>>;
|
|
6275
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6276
|
+
readonly namespace: Schema.Literal<string>;
|
|
6277
|
+
readonly type: Schema.Literal<"StopTurnRequested">;
|
|
6278
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
6279
|
+
readonly payload: Schema.Struct<{
|
|
6280
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
6281
|
+
readonly runId: Schema.optionalKey<Schema.brand<Schema.String, "RunId">>;
|
|
6282
|
+
readonly turnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
6283
|
+
}>;
|
|
6284
|
+
readonly durability: Schema.Literal<"durable">;
|
|
6285
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
6286
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
6287
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
6288
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
6289
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
6290
|
+
readonly span: Schema.Struct<{
|
|
6291
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
6292
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
6293
|
+
readonly sampled: Schema.Boolean;
|
|
6294
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
6295
|
+
}>;
|
|
6296
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
6297
|
+
readonly context: Schema.Struct<{
|
|
6298
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
6299
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
6300
|
+
readonly sampled: Schema.Boolean;
|
|
6301
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
6302
|
+
}>;
|
|
6303
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
6304
|
+
}>>;
|
|
6305
|
+
}>>;
|
|
6306
|
+
}>, Schema.Struct<{
|
|
6307
|
+
readonly namespace: Schema.Literal<string>;
|
|
6308
|
+
readonly type: Schema.Literal<"StopTurnApplied">;
|
|
6309
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
6310
|
+
readonly payload: Schema.Struct<{
|
|
6311
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
6312
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
6313
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
6314
|
+
readonly inferenceId: Schema.optionalKey<Schema.brand<Schema.String, "InferenceId">>;
|
|
6315
|
+
}>;
|
|
6316
|
+
readonly durability: Schema.Literal<"durable">;
|
|
6317
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
6318
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
6319
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
6320
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
6321
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
6322
|
+
readonly span: Schema.Struct<{
|
|
6323
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
6324
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
6325
|
+
readonly sampled: Schema.Boolean;
|
|
6326
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
6327
|
+
}>;
|
|
6328
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
6329
|
+
readonly context: Schema.Struct<{
|
|
6330
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
6331
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
6332
|
+
readonly sampled: Schema.Boolean;
|
|
6333
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
6334
|
+
}>;
|
|
6335
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
6336
|
+
}>>;
|
|
6337
|
+
}>>;
|
|
6338
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6339
|
+
readonly namespace: Schema.Literal<string>;
|
|
6340
|
+
readonly type: Schema.Literal<"ContextProjected">;
|
|
6341
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
6342
|
+
readonly payload: Schema.Struct<{
|
|
6343
|
+
readonly contextVersion: Schema.brand<Schema.Int, "ContextVersion">;
|
|
6344
|
+
readonly throughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
6345
|
+
}>;
|
|
6346
|
+
readonly durability: Schema.Literal<"durable">;
|
|
6347
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
6348
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
6349
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
6350
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
6351
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
6352
|
+
readonly span: Schema.Struct<{
|
|
6353
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
6354
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
6355
|
+
readonly sampled: Schema.Boolean;
|
|
6356
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
6357
|
+
}>;
|
|
6358
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
6359
|
+
readonly context: Schema.Struct<{
|
|
6360
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
6361
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
6362
|
+
readonly sampled: Schema.Boolean;
|
|
6363
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
6364
|
+
}>;
|
|
6365
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
6366
|
+
}>>;
|
|
6367
|
+
}>>;
|
|
6368
|
+
}>, Schema.Struct<{
|
|
6369
|
+
readonly namespace: Schema.Literal<string>;
|
|
6370
|
+
readonly type: Schema.Literal<"CompactionRequested">;
|
|
6371
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
6372
|
+
readonly payload: Schema.Struct<{
|
|
6373
|
+
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
6374
|
+
readonly sourceFromSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
6375
|
+
readonly sourceToSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
6376
|
+
}>;
|
|
6377
|
+
readonly durability: Schema.Literal<"durable">;
|
|
6378
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
6379
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
6380
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
6381
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
6382
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
6383
|
+
readonly span: Schema.Struct<{
|
|
6384
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
6385
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
6386
|
+
readonly sampled: Schema.Boolean;
|
|
6387
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
6388
|
+
}>;
|
|
6389
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
6390
|
+
readonly context: Schema.Struct<{
|
|
6391
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
6392
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
6393
|
+
readonly sampled: Schema.Boolean;
|
|
6394
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
6395
|
+
}>;
|
|
6396
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
6397
|
+
}>>;
|
|
6398
|
+
}>>;
|
|
6399
|
+
}>, Schema.Struct<{
|
|
6400
|
+
readonly namespace: Schema.Literal<string>;
|
|
6401
|
+
readonly type: Schema.Literal<"CompactionStarted">;
|
|
5368
6402
|
readonly schemaVersion: Schema.Literal<number>;
|
|
5369
6403
|
readonly payload: Schema.Struct<{
|
|
5370
|
-
readonly
|
|
5371
|
-
readonly error: Schema.optionalKey<Schema.Struct<{
|
|
5372
|
-
readonly message: Schema.String;
|
|
5373
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
5374
|
-
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
5375
|
-
}>>;
|
|
5376
|
-
readonly promptPart: Schema.Struct<{
|
|
5377
|
-
readonly isFailure: Schema.Literal<true>;
|
|
5378
|
-
readonly result: Schema.Struct<{
|
|
5379
|
-
readonly message: Schema.String;
|
|
5380
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
5381
|
-
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
5382
|
-
}>;
|
|
5383
|
-
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
5384
|
-
readonly name: Schema.NonEmptyString;
|
|
5385
|
-
readonly type: Schema.Literal<"tool-result">;
|
|
5386
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5387
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5388
|
-
}>;
|
|
6404
|
+
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
5389
6405
|
}>;
|
|
5390
6406
|
readonly durability: Schema.Literal<"durable">;
|
|
5391
6407
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -5409,14 +6425,16 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5409
6425
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5410
6426
|
}>>;
|
|
5411
6427
|
}>>;
|
|
5412
|
-
}
|
|
6428
|
+
}>, Schema.Struct<{
|
|
5413
6429
|
readonly namespace: Schema.Literal<string>;
|
|
5414
|
-
readonly type: Schema.Literal<"
|
|
6430
|
+
readonly type: Schema.Literal<"SummaryCreated">;
|
|
5415
6431
|
readonly schemaVersion: Schema.Literal<number>;
|
|
5416
6432
|
readonly payload: Schema.Struct<{
|
|
5417
|
-
readonly
|
|
5418
|
-
readonly
|
|
5419
|
-
readonly
|
|
6433
|
+
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
6434
|
+
readonly summaryId: Schema.brand<Schema.String, "SummaryId">;
|
|
6435
|
+
readonly sourceFromSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
6436
|
+
readonly sourceToSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
6437
|
+
readonly summary: Schema.Unknown;
|
|
5420
6438
|
}>;
|
|
5421
6439
|
readonly durability: Schema.Literal<"durable">;
|
|
5422
6440
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -5442,13 +6460,23 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5442
6460
|
}>>;
|
|
5443
6461
|
}>, Schema.Struct<{
|
|
5444
6462
|
readonly namespace: Schema.Literal<string>;
|
|
5445
|
-
readonly type: Schema.Literal<"
|
|
6463
|
+
readonly type: Schema.Literal<"CompactionCompleted">;
|
|
5446
6464
|
readonly schemaVersion: Schema.Literal<number>;
|
|
5447
6465
|
readonly payload: Schema.Struct<{
|
|
5448
|
-
readonly
|
|
5449
|
-
readonly
|
|
5450
|
-
|
|
5451
|
-
|
|
6466
|
+
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
6467
|
+
readonly modelSelection: Schema.optionalKey<Schema.Struct<{
|
|
6468
|
+
readonly provider: Schema.NonEmptyString;
|
|
6469
|
+
readonly modelId: Schema.NonEmptyString;
|
|
6470
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
6471
|
+
}>>;
|
|
6472
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
6473
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
6474
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
6475
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
6476
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
6477
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
6478
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
6479
|
+
}>>;
|
|
5452
6480
|
}>;
|
|
5453
6481
|
readonly durability: Schema.Literal<"durable">;
|
|
5454
6482
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -5472,13 +6500,15 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5472
6500
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5473
6501
|
}>>;
|
|
5474
6502
|
}>>;
|
|
5475
|
-
}
|
|
6503
|
+
}>, Schema.Struct<{
|
|
5476
6504
|
readonly namespace: Schema.Literal<string>;
|
|
5477
|
-
readonly type: Schema.Literal<"
|
|
6505
|
+
readonly type: Schema.Literal<"ContextRebased">;
|
|
5478
6506
|
readonly schemaVersion: Schema.Literal<number>;
|
|
5479
6507
|
readonly payload: Schema.Struct<{
|
|
6508
|
+
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
6509
|
+
readonly summaryId: Schema.brand<Schema.String, "SummaryId">;
|
|
5480
6510
|
readonly contextVersion: Schema.brand<Schema.Int, "ContextVersion">;
|
|
5481
|
-
readonly
|
|
6511
|
+
readonly retainedFromContextSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
5482
6512
|
}>;
|
|
5483
6513
|
readonly durability: Schema.Literal<"durable">;
|
|
5484
6514
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -5504,12 +6534,28 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5504
6534
|
}>>;
|
|
5505
6535
|
}>, Schema.Struct<{
|
|
5506
6536
|
readonly namespace: Schema.Literal<string>;
|
|
5507
|
-
readonly type: Schema.Literal<"
|
|
6537
|
+
readonly type: Schema.Literal<"CompactionFailed">;
|
|
5508
6538
|
readonly schemaVersion: Schema.Literal<number>;
|
|
5509
6539
|
readonly payload: Schema.Struct<{
|
|
5510
6540
|
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
5511
|
-
readonly
|
|
5512
|
-
|
|
6541
|
+
readonly error: Schema.Struct<{
|
|
6542
|
+
readonly message: Schema.String;
|
|
6543
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
6544
|
+
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
6545
|
+
}>;
|
|
6546
|
+
readonly modelSelection: Schema.optionalKey<Schema.Struct<{
|
|
6547
|
+
readonly provider: Schema.NonEmptyString;
|
|
6548
|
+
readonly modelId: Schema.NonEmptyString;
|
|
6549
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
6550
|
+
}>>;
|
|
6551
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
6552
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
6553
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
6554
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
6555
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
6556
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
6557
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
6558
|
+
}>>;
|
|
5513
6559
|
}>;
|
|
5514
6560
|
readonly durability: Schema.Literal<"durable">;
|
|
5515
6561
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -5533,12 +6579,13 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5533
6579
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5534
6580
|
}>>;
|
|
5535
6581
|
}>>;
|
|
5536
|
-
}>, Schema.Struct<{
|
|
6582
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5537
6583
|
readonly namespace: Schema.Literal<string>;
|
|
5538
|
-
readonly type: Schema.Literal<"
|
|
6584
|
+
readonly type: Schema.Literal<"BaseStateRequested">;
|
|
5539
6585
|
readonly schemaVersion: Schema.Literal<number>;
|
|
5540
6586
|
readonly payload: Schema.Struct<{
|
|
5541
|
-
readonly
|
|
6587
|
+
readonly baseStateId: Schema.brand<Schema.String, "BaseStateId">;
|
|
6588
|
+
readonly requestedThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
5542
6589
|
}>;
|
|
5543
6590
|
readonly durability: Schema.Literal<"durable">;
|
|
5544
6591
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -5564,14 +6611,11 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5564
6611
|
}>>;
|
|
5565
6612
|
}>, Schema.Struct<{
|
|
5566
6613
|
readonly namespace: Schema.Literal<string>;
|
|
5567
|
-
readonly type: Schema.Literal<"
|
|
6614
|
+
readonly type: Schema.Literal<"BaseStateCreated">;
|
|
5568
6615
|
readonly schemaVersion: Schema.Literal<number>;
|
|
5569
6616
|
readonly payload: Schema.Struct<{
|
|
5570
|
-
readonly
|
|
5571
|
-
readonly
|
|
5572
|
-
readonly sourceFromSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
5573
|
-
readonly sourceToSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
5574
|
-
readonly summary: Schema.Unknown;
|
|
6617
|
+
readonly baseStateId: Schema.brand<Schema.String, "BaseStateId">;
|
|
6618
|
+
readonly coversThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
5575
6619
|
}>;
|
|
5576
6620
|
readonly durability: Schema.Literal<"durable">;
|
|
5577
6621
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -5597,10 +6641,15 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5597
6641
|
}>>;
|
|
5598
6642
|
}>, Schema.Struct<{
|
|
5599
6643
|
readonly namespace: Schema.Literal<string>;
|
|
5600
|
-
readonly type: Schema.Literal<"
|
|
6644
|
+
readonly type: Schema.Literal<"BaseStateFailed">;
|
|
5601
6645
|
readonly schemaVersion: Schema.Literal<number>;
|
|
5602
6646
|
readonly payload: Schema.Struct<{
|
|
5603
|
-
readonly
|
|
6647
|
+
readonly baseStateId: Schema.brand<Schema.String, "BaseStateId">;
|
|
6648
|
+
readonly error: Schema.Struct<{
|
|
6649
|
+
readonly message: Schema.String;
|
|
6650
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
6651
|
+
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
6652
|
+
}>;
|
|
5604
6653
|
}>;
|
|
5605
6654
|
readonly durability: Schema.Literal<"durable">;
|
|
5606
6655
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -5624,15 +6673,19 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5624
6673
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5625
6674
|
}>>;
|
|
5626
6675
|
}>>;
|
|
5627
|
-
}
|
|
6676
|
+
}>]>]>;
|
|
6677
|
+
type EDADurableEvent = typeof EDADurableEvent.Type;
|
|
6678
|
+
/** Current V1 framework durable event schema. Future versions route beside this alias. */
|
|
6679
|
+
declare const EDADurableEventV1: Schema.Union<readonly [Schema.Struct<{
|
|
5628
6680
|
readonly namespace: Schema.Literal<string>;
|
|
5629
|
-
readonly type: Schema.Literal<"
|
|
6681
|
+
readonly type: Schema.Literal<"SessionConfigured">;
|
|
5630
6682
|
readonly schemaVersion: Schema.Literal<number>;
|
|
5631
6683
|
readonly payload: Schema.Struct<{
|
|
5632
|
-
readonly
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
6684
|
+
readonly modelSelection: Schema.Struct<{
|
|
6685
|
+
readonly provider: Schema.NonEmptyString;
|
|
6686
|
+
readonly modelId: Schema.NonEmptyString;
|
|
6687
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
6688
|
+
}>;
|
|
5636
6689
|
}>;
|
|
5637
6690
|
readonly durability: Schema.Literal<"durable">;
|
|
5638
6691
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -5656,17 +6709,19 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5656
6709
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5657
6710
|
}>>;
|
|
5658
6711
|
}>>;
|
|
5659
|
-
}>, Schema.Struct<{
|
|
6712
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5660
6713
|
readonly namespace: Schema.Literal<string>;
|
|
5661
|
-
readonly type: Schema.Literal<"
|
|
6714
|
+
readonly type: Schema.Literal<"RunSchedulingRequested">;
|
|
5662
6715
|
readonly schemaVersion: Schema.Literal<number>;
|
|
5663
6716
|
readonly payload: Schema.Struct<{
|
|
5664
|
-
readonly
|
|
5665
|
-
readonly
|
|
5666
|
-
readonly
|
|
5667
|
-
|
|
5668
|
-
readonly
|
|
5669
|
-
|
|
6717
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
6718
|
+
readonly work: Schema.Union<readonly [Schema.TaggedStruct<"Command", {
|
|
6719
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
6720
|
+
}>, Schema.TaggedStruct<"Recovery", {
|
|
6721
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
6722
|
+
readonly interruptedRunId: Schema.brand<Schema.String, "RunId">;
|
|
6723
|
+
readonly inputMessageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
|
|
6724
|
+
}>]>;
|
|
5670
6725
|
}>;
|
|
5671
6726
|
readonly durability: Schema.Literal<"durable">;
|
|
5672
6727
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -5690,13 +6745,12 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5690
6745
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5691
6746
|
}>>;
|
|
5692
6747
|
}>>;
|
|
5693
|
-
}
|
|
6748
|
+
}>, Schema.Struct<{
|
|
5694
6749
|
readonly namespace: Schema.Literal<string>;
|
|
5695
|
-
readonly type: Schema.Literal<"
|
|
6750
|
+
readonly type: Schema.Literal<"RunSchedulingDelivered">;
|
|
5696
6751
|
readonly schemaVersion: Schema.Literal<number>;
|
|
5697
6752
|
readonly payload: Schema.Struct<{
|
|
5698
|
-
readonly
|
|
5699
|
-
readonly requestedThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
6753
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
5700
6754
|
}>;
|
|
5701
6755
|
readonly durability: Schema.Literal<"durable">;
|
|
5702
6756
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -5722,11 +6776,11 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5722
6776
|
}>>;
|
|
5723
6777
|
}>, Schema.Struct<{
|
|
5724
6778
|
readonly namespace: Schema.Literal<string>;
|
|
5725
|
-
readonly type: Schema.Literal<"
|
|
6779
|
+
readonly type: Schema.Literal<"RunSchedulingInvalidated">;
|
|
5726
6780
|
readonly schemaVersion: Schema.Literal<number>;
|
|
5727
6781
|
readonly payload: Schema.Struct<{
|
|
5728
|
-
readonly
|
|
5729
|
-
readonly
|
|
6782
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
6783
|
+
readonly reason: Schema.Literals<readonly ["stopped", "interrupted", "message-cancelled", "ineligible"]>;
|
|
5730
6784
|
}>;
|
|
5731
6785
|
readonly durability: Schema.Literal<"durable">;
|
|
5732
6786
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -5752,15 +6806,11 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5752
6806
|
}>>;
|
|
5753
6807
|
}>, Schema.Struct<{
|
|
5754
6808
|
readonly namespace: Schema.Literal<string>;
|
|
5755
|
-
readonly type: Schema.Literal<"
|
|
6809
|
+
readonly type: Schema.Literal<"RunSchedulingGranted">;
|
|
5756
6810
|
readonly schemaVersion: Schema.Literal<number>;
|
|
5757
6811
|
readonly payload: Schema.Struct<{
|
|
5758
|
-
readonly
|
|
5759
|
-
readonly
|
|
5760
|
-
readonly message: Schema.String;
|
|
5761
|
-
readonly code: Schema.optionalKey<Schema.String>;
|
|
5762
|
-
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
5763
|
-
}>;
|
|
6812
|
+
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
6813
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
5764
6814
|
}>;
|
|
5765
6815
|
readonly durability: Schema.Literal<"durable">;
|
|
5766
6816
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -5784,10 +6834,7 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Sch
|
|
|
5784
6834
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5785
6835
|
}>>;
|
|
5786
6836
|
}>>;
|
|
5787
|
-
}>]
|
|
5788
|
-
type EDADurableEvent = typeof EDADurableEvent.Type;
|
|
5789
|
-
/** Current V1 framework durable event schema. Future versions route beside this alias. */
|
|
5790
|
-
declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6837
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5791
6838
|
readonly namespace: Schema.Literal<string>;
|
|
5792
6839
|
readonly type: Schema.Literal<"CommandAdmitted">;
|
|
5793
6840
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -6244,12 +7291,17 @@ declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
6244
7291
|
readonly namespace: Schema.Literal<string>;
|
|
6245
7292
|
readonly type: Schema.Literal<"PendingMessagesPaused">;
|
|
6246
7293
|
readonly schemaVersion: Schema.Literal<number>;
|
|
6247
|
-
readonly payload: Schema.Struct<{
|
|
6248
|
-
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
7294
|
+
readonly payload: Schema.Union<readonly [Schema.Struct<{
|
|
6249
7295
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
7296
|
+
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
6250
7297
|
readonly messageIds: Schema.NonEmptyArray<Schema.brand<Schema.String, "MessageId">>;
|
|
6251
7298
|
readonly reason: Schema.Literal<"user-interrupted">;
|
|
6252
|
-
}
|
|
7299
|
+
}>, Schema.Struct<{
|
|
7300
|
+
readonly runRequestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
7301
|
+
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
7302
|
+
readonly messageIds: Schema.NonEmptyArray<Schema.brand<Schema.String, "MessageId">>;
|
|
7303
|
+
readonly reason: Schema.Literal<"user-interrupted">;
|
|
7304
|
+
}>]>;
|
|
6253
7305
|
readonly durability: Schema.Literal<"durable">;
|
|
6254
7306
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
6255
7307
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
@@ -6344,6 +7396,78 @@ declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
6344
7396
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
6345
7397
|
}>>;
|
|
6346
7398
|
}>>;
|
|
7399
|
+
}>, Schema.Struct<{
|
|
7400
|
+
readonly namespace: Schema.Literal<string>;
|
|
7401
|
+
readonly type: Schema.Literal<"AssistantMessageImported">;
|
|
7402
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
7403
|
+
readonly payload: Schema.Struct<{
|
|
7404
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
7405
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
7406
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
7407
|
+
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
7408
|
+
readonly promptParts: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
7409
|
+
readonly type: Schema.Literal<"text">;
|
|
7410
|
+
readonly text: Schema.String;
|
|
7411
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7412
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7413
|
+
}>, Schema.Struct<{
|
|
7414
|
+
readonly type: Schema.Literal<"file">;
|
|
7415
|
+
readonly mediaType: Schema.String;
|
|
7416
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
7417
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
7418
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7419
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7420
|
+
}>, Schema.Struct<{
|
|
7421
|
+
readonly type: Schema.Literal<"reasoning">;
|
|
7422
|
+
readonly text: Schema.String;
|
|
7423
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7424
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7425
|
+
}>, Schema.Struct<{
|
|
7426
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
7427
|
+
readonly id: Schema.String;
|
|
7428
|
+
readonly name: Schema.String;
|
|
7429
|
+
readonly params: Schema.Unknown;
|
|
7430
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
7431
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7432
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7433
|
+
}>, Schema.Struct<{
|
|
7434
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
7435
|
+
readonly id: Schema.String;
|
|
7436
|
+
readonly name: Schema.String;
|
|
7437
|
+
readonly isFailure: Schema.Boolean;
|
|
7438
|
+
readonly result: Schema.Unknown;
|
|
7439
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7440
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7441
|
+
}>, Schema.Struct<{
|
|
7442
|
+
readonly type: Schema.Literal<"tool-approval-request">;
|
|
7443
|
+
readonly approvalId: Schema.String;
|
|
7444
|
+
readonly toolCallId: Schema.String;
|
|
7445
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7446
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7447
|
+
}>]>>;
|
|
7448
|
+
}>;
|
|
7449
|
+
readonly durability: Schema.Literal<"durable">;
|
|
7450
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
7451
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
7452
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
7453
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
7454
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
7455
|
+
readonly span: Schema.Struct<{
|
|
7456
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
7457
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
7458
|
+
readonly sampled: Schema.Boolean;
|
|
7459
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
7460
|
+
}>;
|
|
7461
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
7462
|
+
readonly context: Schema.Struct<{
|
|
7463
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
7464
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
7465
|
+
readonly sampled: Schema.Boolean;
|
|
7466
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
7467
|
+
}>;
|
|
7468
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
7469
|
+
}>>;
|
|
7470
|
+
}>>;
|
|
6347
7471
|
}>, Schema.Struct<{
|
|
6348
7472
|
readonly namespace: Schema.Literal<string>;
|
|
6349
7473
|
readonly type: Schema.Literal<"AssistantPartialCommitted">;
|
|
@@ -6637,6 +7761,7 @@ declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
6637
7761
|
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
6638
7762
|
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
6639
7763
|
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
7764
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
6640
7765
|
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
6641
7766
|
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
6642
7767
|
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
@@ -6773,6 +7898,7 @@ declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
6773
7898
|
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
6774
7899
|
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
6775
7900
|
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
7901
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
6776
7902
|
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
6777
7903
|
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
6778
7904
|
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
@@ -7230,6 +8356,19 @@ declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
7230
8356
|
readonly schemaVersion: Schema.Literal<number>;
|
|
7231
8357
|
readonly payload: Schema.Struct<{
|
|
7232
8358
|
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
8359
|
+
readonly modelSelection: Schema.optionalKey<Schema.Struct<{
|
|
8360
|
+
readonly provider: Schema.NonEmptyString;
|
|
8361
|
+
readonly modelId: Schema.NonEmptyString;
|
|
8362
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
8363
|
+
}>>;
|
|
8364
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
8365
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
8366
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
8367
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
8368
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
8369
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
8370
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
8371
|
+
}>>;
|
|
7233
8372
|
}>;
|
|
7234
8373
|
readonly durability: Schema.Literal<"durable">;
|
|
7235
8374
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -7296,6 +8435,19 @@ declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [S
|
|
|
7296
8435
|
readonly code: Schema.optionalKey<Schema.String>;
|
|
7297
8436
|
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
7298
8437
|
}>;
|
|
8438
|
+
readonly modelSelection: Schema.optionalKey<Schema.Struct<{
|
|
8439
|
+
readonly provider: Schema.NonEmptyString;
|
|
8440
|
+
readonly modelId: Schema.NonEmptyString;
|
|
8441
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
8442
|
+
}>>;
|
|
8443
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
8444
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
8445
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
8446
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
8447
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
8448
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
8449
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
8450
|
+
}>>;
|
|
7299
8451
|
}>;
|
|
7300
8452
|
readonly durability: Schema.Literal<"durable">;
|
|
7301
8453
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
@@ -7420,5 +8572,5 @@ declare const decodeUnknownEDADurableEventSync: (input: unknown) => EDADurableEv
|
|
|
7420
8572
|
/** Effectful V1+ router for untrusted framework-owned durable event boundaries. */
|
|
7421
8573
|
declare const decodeUnknownEDADurableEvent: (input: unknown) => Effect.Effect<EDADurableEvent, unknown>;
|
|
7422
8574
|
//#endregion
|
|
7423
|
-
export {
|
|
7424
|
-
//# sourceMappingURL=durable-
|
|
8575
|
+
export { PendingMessagesPausedEvent as $, sessionConfiguredEventType as $n, ToolRejectionPromptPart as $t, CompactionFailedEvent as A, commandStartedEventType as An, StopTurnAppliedPayload as At, ContextRebasedPayload as B, inferenceFailedEventType as Bn, ToolCallCreatedPayload as Bt, CommandEvent as C, baseStateCreatedEventType as Cn, SessionConfiguredEvent as Ct, CommandStartedPayload as D, commandCancelledEventType as Dn, SteeringMessageQueuedPayload as Dt, CommandStartedEvent as E, commandAdmittedEventType as En, SteeringMessageQueuedEvent as Et, CompactionStartedPayload as F, contextProjectedEventType as Fn, SystemMessageCommittedEvent as Ft, InferenceEvent as G, runCompletedEventType as Gn, ToolCallRejectedEvent as Gt, EDADurableEventV1 as H, messageQueuePausedEventType as Hn, ToolCallFailedEvent as Ht, ContextAndCompactionEvent as I, contextRebasedEventType as In, SystemMessageCommittedPayload as It, InferenceStartedEvent as J, runSchedulingDeliveredEventType as Jn, ToolCallRejectionReason as Jt, InferenceFailedEvent as K, runFailedEventType as Kn, ToolCallRejectedPayload as Kt, ContextProjectedEvent as L, decodeUnknownEDADurableEvent as Ln, ToolCallCompletedEvent as Lt, CompactionRequestedEvent as M, compactionFailedEventType as Mn, StopTurnRequestedPayload as Mt, CompactionRequestedPayload as N, compactionRequestedEventType as Nn, SummaryCreatedEvent as Nt, CompactionCompletedEvent as O, commandCompletedEventType as On, StopControlEvent as Ot, CompactionStartedEvent as P, compactionStartedEventType as Pn, SummaryCreatedPayload as Pt, MessageQueuePausedPayload as Q, runStartedEventType as Qn, ToolPromptPart as Qt, ContextProjectedPayload as R, decodeUnknownEDADurableEventSync as Rn, ToolCallCompletedPayload as Rt, CommandCompletedPayload as S, assistantPartialCommittedEventType as Sn, RunStartedPayload as St, CommandFailedPayload as T, baseStateRequestedEventType as Tn, SteeringMessageCancelledPayload as Tt, InferenceCompletedEvent as U, pendingMessagesPausedEventType as Un, ToolCallFailedPayload as Ut, EDADurableEvent as V, inferenceStartedEventType as Vn, ToolCallEvent as Vt, InferenceCompletedPayload as W, recoveryCompletedEventType as Wn, ToolCallPromptPart as Wt, MessageEvent as X, runSchedulingInvalidatedEventType as Xn, ToolCallStartedPayload as Xt, InferenceStartedPayload as Y, runSchedulingGrantedEventType as Yn, ToolCallStartedEvent as Yt, MessageQueuePausedEvent as Z, runSchedulingRequestedEventType as Zn, ToolFailurePromptPart as Zt, CommandAdmittedEvent as _, UserMessagePromotedPayload as _n, userMessagePromotedEventType as _r, RunSchedulingInvalidatedEvent as _t, AssistantMessageImportedPayload as a, TurnFailedPayload as an, systemMessageCommittedEventType as ar, RunCompletedEvent as at, CommandCancelledPayload as b, assistantMessageCommittedEventType as bn, RunSchedulingRequestedPayload as bt, AssistantPromptPart as c, TurnStoppedEvent as cn, toolCallFailedEventType as cr, RunFailedEvent as ct, BaseStateCreatedPayload as d, UserMessageCancelledEvent as dn, turnCompletedEventType as dr, RunInterruptedPayload as dt, ToolSuccessPromptPart as en, steeringMessageCancelledEventType as er, PendingMessagesPausedPayload as et, BaseStateEvent as f, UserMessageCancelledPayload as fn, turnFailedEventType as fr, RunSchedulingDeliveredEvent as ft, BaseStateRequestedPayload as g, UserMessagePromotedEvent as gn, userMessageCommittedEventType as gr, RunSchedulingGrantedPayload as gt, BaseStateRequestedEvent as h, UserMessageDisposition as hn, userMessageCancelledEventType as hr, RunSchedulingGrantedEvent as ht, AssistantMessageImportedEvent as i, TurnFailedEvent as in, summaryCreatedEventType as ir, RecoveryEvent as it, CompactionFailedPayload as j, compactionCompletedEventType as jn, StopTurnRequestedEvent as jt, CompactionCompletedPayload as k, commandFailedEventType as kn, StopTurnAppliedEvent as kt, AssistantPromptParts as l, TurnStoppedPayload as ln, toolCallRejectedEventType as lr, RunFailedPayload as lt, BaseStateFailedPayload as m, UserMessageCommittedPayload as mn, turnStoppedEventType as mr, RunSchedulingEvent as mt, AssistantMessageCommittedPayload as n, TurnCompletedPayload as nn, stopTurnAppliedEventType as nr, RecoveryCompletedPayload as nt, AssistantPartialCommittedEvent as o, TurnStartedEvent as on, toolCallCompletedEventType as or, RunCompletedPayload as ot, BaseStateFailedEvent as p, UserMessageCommittedEvent as pn, turnStartedEventType as pr, RunSchedulingDeliveredPayload as pt, InferenceFailedPayload as q, runInterruptedEventType as qn, ToolCallRejectionFeedback as qt, AssistantMessageContent as r, TurnEvent as rn, stopTurnRequestedEventType as rr, RecoveryContinuation as rt, AssistantPartialCommittedPayload as s, TurnStartedPayload as sn, toolCallCreatedEventType as sr, RunEvent as st, AssistantMessageCommittedEvent as t, TurnCompletedEvent as tn, steeringMessageQueuedEventType as tr, RecoveryCompletedEvent as tt, BaseStateCreatedEvent as u, UserMessageCancellationReason as un, toolCallStartedEventType as ur, RunInterruptedEvent as ut, CommandAdmittedPayload as v, UserMessageSubmittedEvent as vn, userMessageSubmittedEventType as vr, RunSchedulingInvalidatedPayload as vt, CommandFailedEvent as w, baseStateFailedEventType as wn, SteeringMessageCancelledEvent as wt, CommandCompletedEvent as x, assistantMessageImportedEventType as xn, RunStartedEvent as xt, CommandCancelledEvent as y, UserMessageSubmittedPayload as yn, RunSchedulingRequestedEvent as yt, ContextRebasedEvent as z, inferenceCompletedEventType as zn, ToolCallCreatedEvent as zt };
|
|
8576
|
+
//# sourceMappingURL=durable-DeLCAvbw.d.ts.map
|