effect-durable-agent 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{delivery-B_LDTuIB.d.ts → delivery-v42MAMEP.d.ts} +2 -2
- package/dist/domain/command-queues.d.ts +1 -1
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/reduced-state.d.ts +1 -1
- package/dist/domain/run-scheduling.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{reduced-state-YbjpihEf.d.ts → reduced-state-DB_iANjR.d.ts} +422 -422
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/decider.d.ts +1 -1
- package/dist/services/model-call.d.ts +1 -1
- package/dist/services/prompt-projector.d.ts +1 -1
- package/dist/services/run-scheduler.d.ts +1 -1
- package/dist/services/runtime-layer.d.ts +1 -1
- package/dist/services/runtime-layer.js +1 -1
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +1 -1
- package/dist/services/session-query.d.ts +1 -1
- package/dist/services/session-query.js +1 -1
- package/dist/services/session-state.d.ts +1 -1
- package/dist/services/session-state.js +1 -1
- package/dist/services/sink-registry.d.ts +1 -1
- package/dist/services/tool-registry.d.ts +1 -1
- package/dist/{session-state-D02LCVcC.js → session-state-BII-Jhf-.js} +5 -3
- package/dist/{session-state-D02LCVcC.js.map → session-state-BII-Jhf-.js.map} +1 -1
- package/dist/testkit/layers.d.ts +1 -1
- package/dist/testkit/layers.js +1 -1
- package/dist/websocket/events.d.ts +1 -1
- package/dist/websocket.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7530,6 +7530,108 @@ interface RunInferenceInput extends RunInferenceContext {
|
|
|
7530
7530
|
/** Summary returned after one provider inference stream is consumed. */
|
|
7531
7531
|
declare const InferenceRunResult: Schema.Struct<{
|
|
7532
7532
|
readonly started: Schema.Codec<CommittedDurableEvent<{
|
|
7533
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
7534
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
7535
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
7536
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
7537
|
+
readonly trace: {
|
|
7538
|
+
readonly span: {
|
|
7539
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
7540
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
7541
|
+
readonly sampled: boolean;
|
|
7542
|
+
readonly tracestate: string | null;
|
|
7543
|
+
};
|
|
7544
|
+
readonly links: readonly {
|
|
7545
|
+
readonly context: {
|
|
7546
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
7547
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
7548
|
+
readonly sampled: boolean;
|
|
7549
|
+
readonly tracestate: string | null;
|
|
7550
|
+
};
|
|
7551
|
+
readonly attributes: {
|
|
7552
|
+
readonly [x: string]: string | number | boolean;
|
|
7553
|
+
};
|
|
7554
|
+
}[];
|
|
7555
|
+
};
|
|
7556
|
+
readonly durability: "durable";
|
|
7557
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
7558
|
+
readonly namespace: "effect-durable-agent";
|
|
7559
|
+
readonly type: "CommandCompleted";
|
|
7560
|
+
readonly schemaVersion: number;
|
|
7561
|
+
readonly payload: {
|
|
7562
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
7563
|
+
};
|
|
7564
|
+
} | {
|
|
7565
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
7566
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
7567
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
7568
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
7569
|
+
readonly trace: {
|
|
7570
|
+
readonly span: {
|
|
7571
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
7572
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
7573
|
+
readonly sampled: boolean;
|
|
7574
|
+
readonly tracestate: string | null;
|
|
7575
|
+
};
|
|
7576
|
+
readonly links: readonly {
|
|
7577
|
+
readonly context: {
|
|
7578
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
7579
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
7580
|
+
readonly sampled: boolean;
|
|
7581
|
+
readonly tracestate: string | null;
|
|
7582
|
+
};
|
|
7583
|
+
readonly attributes: {
|
|
7584
|
+
readonly [x: string]: string | number | boolean;
|
|
7585
|
+
};
|
|
7586
|
+
}[];
|
|
7587
|
+
};
|
|
7588
|
+
readonly durability: "durable";
|
|
7589
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
7590
|
+
readonly namespace: "effect-durable-agent";
|
|
7591
|
+
readonly type: "CommandFailed";
|
|
7592
|
+
readonly schemaVersion: number;
|
|
7593
|
+
readonly payload: {
|
|
7594
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
7595
|
+
readonly error: {
|
|
7596
|
+
readonly message: string;
|
|
7597
|
+
readonly code?: string | undefined;
|
|
7598
|
+
readonly details?: unknown;
|
|
7599
|
+
};
|
|
7600
|
+
};
|
|
7601
|
+
} | {
|
|
7602
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
7603
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
7604
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
7605
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
7606
|
+
readonly trace: {
|
|
7607
|
+
readonly span: {
|
|
7608
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
7609
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
7610
|
+
readonly sampled: boolean;
|
|
7611
|
+
readonly tracestate: string | null;
|
|
7612
|
+
};
|
|
7613
|
+
readonly links: readonly {
|
|
7614
|
+
readonly context: {
|
|
7615
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
7616
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
7617
|
+
readonly sampled: boolean;
|
|
7618
|
+
readonly tracestate: string | null;
|
|
7619
|
+
};
|
|
7620
|
+
readonly attributes: {
|
|
7621
|
+
readonly [x: string]: string | number | boolean;
|
|
7622
|
+
};
|
|
7623
|
+
}[];
|
|
7624
|
+
};
|
|
7625
|
+
readonly durability: "durable";
|
|
7626
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
7627
|
+
readonly namespace: "effect-durable-agent";
|
|
7628
|
+
readonly type: "CommandCancelled";
|
|
7629
|
+
readonly schemaVersion: number;
|
|
7630
|
+
readonly payload: {
|
|
7631
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
7632
|
+
readonly reason: string;
|
|
7633
|
+
};
|
|
7634
|
+
} | {
|
|
7533
7635
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
7534
7636
|
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
7535
7637
|
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
@@ -8128,10 +8230,11 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
8128
8230
|
readonly durability: "durable";
|
|
8129
8231
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
8130
8232
|
readonly namespace: "effect-durable-agent";
|
|
8131
|
-
readonly type: "
|
|
8233
|
+
readonly type: "SystemMessageCommitted";
|
|
8132
8234
|
readonly schemaVersion: number;
|
|
8133
8235
|
readonly payload: {
|
|
8134
|
-
readonly
|
|
8236
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
8237
|
+
readonly content: string;
|
|
8135
8238
|
};
|
|
8136
8239
|
} | {
|
|
8137
8240
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -8160,81 +8263,58 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
8160
8263
|
readonly durability: "durable";
|
|
8161
8264
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
8162
8265
|
readonly namespace: "effect-durable-agent";
|
|
8163
|
-
readonly type: "
|
|
8266
|
+
readonly type: "UserMessageCommitted";
|
|
8164
8267
|
readonly schemaVersion: number;
|
|
8165
8268
|
readonly payload: {
|
|
8166
8269
|
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
8167
|
-
readonly
|
|
8168
|
-
|
|
8169
|
-
readonly
|
|
8170
|
-
readonly
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
8175
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
8176
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
8177
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
8178
|
-
readonly trace: {
|
|
8179
|
-
readonly span: {
|
|
8180
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
8181
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
8182
|
-
readonly sampled: boolean;
|
|
8183
|
-
readonly tracestate: string | null;
|
|
8184
|
-
};
|
|
8185
|
-
readonly links: readonly {
|
|
8186
|
-
readonly context: {
|
|
8187
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
8188
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
8189
|
-
readonly sampled: boolean;
|
|
8190
|
-
readonly tracestate: string | null;
|
|
8270
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
8271
|
+
readonly content: readonly [{
|
|
8272
|
+
readonly type: "text";
|
|
8273
|
+
readonly text: string;
|
|
8274
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8275
|
+
readonly options: {
|
|
8276
|
+
readonly [x: string]: Schema.Json;
|
|
8191
8277
|
};
|
|
8192
|
-
|
|
8193
|
-
|
|
8278
|
+
}, ...{
|
|
8279
|
+
readonly type: "text";
|
|
8280
|
+
readonly text: string;
|
|
8281
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8282
|
+
readonly options: {
|
|
8283
|
+
readonly [x: string]: Schema.Json;
|
|
8194
8284
|
};
|
|
8195
|
-
}[]
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
readonly schemaVersion: number;
|
|
8202
|
-
readonly payload: {
|
|
8203
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
8204
|
-
readonly reason: string;
|
|
8205
|
-
};
|
|
8206
|
-
} | {
|
|
8207
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
8208
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
8209
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
8210
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
8211
|
-
readonly trace: {
|
|
8212
|
-
readonly span: {
|
|
8213
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
8214
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
8215
|
-
readonly sampled: boolean;
|
|
8216
|
-
readonly tracestate: string | null;
|
|
8217
|
-
};
|
|
8218
|
-
readonly links: readonly {
|
|
8219
|
-
readonly context: {
|
|
8220
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
8221
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
8222
|
-
readonly sampled: boolean;
|
|
8223
|
-
readonly tracestate: string | null;
|
|
8285
|
+
}[]] | readonly [{
|
|
8286
|
+
readonly type: "text";
|
|
8287
|
+
readonly text: string;
|
|
8288
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8289
|
+
readonly options: {
|
|
8290
|
+
readonly [x: string]: Schema.Json;
|
|
8224
8291
|
};
|
|
8225
|
-
|
|
8226
|
-
|
|
8292
|
+
} | {
|
|
8293
|
+
readonly type: "file";
|
|
8294
|
+
readonly mediaType: string;
|
|
8295
|
+
readonly fileName?: string | undefined;
|
|
8296
|
+
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
8297
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8298
|
+
readonly options: {
|
|
8299
|
+
readonly [x: string]: Schema.Json;
|
|
8227
8300
|
};
|
|
8228
|
-
}
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8301
|
+
}, ...({
|
|
8302
|
+
readonly type: "text";
|
|
8303
|
+
readonly text: string;
|
|
8304
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8305
|
+
readonly options: {
|
|
8306
|
+
readonly [x: string]: Schema.Json;
|
|
8307
|
+
};
|
|
8308
|
+
} | {
|
|
8309
|
+
readonly type: "file";
|
|
8310
|
+
readonly mediaType: string;
|
|
8311
|
+
readonly fileName?: string | undefined;
|
|
8312
|
+
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
8313
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8314
|
+
readonly options: {
|
|
8315
|
+
readonly [x: string]: Schema.Json;
|
|
8316
|
+
};
|
|
8317
|
+
})[]];
|
|
8238
8318
|
};
|
|
8239
8319
|
} | {
|
|
8240
8320
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -8263,11 +8343,12 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
8263
8343
|
readonly durability: "durable";
|
|
8264
8344
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
8265
8345
|
readonly namespace: "effect-durable-agent";
|
|
8266
|
-
readonly type: "
|
|
8346
|
+
readonly type: "SteeringMessageQueued";
|
|
8267
8347
|
readonly schemaVersion: number;
|
|
8268
8348
|
readonly payload: {
|
|
8269
8349
|
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
8270
8350
|
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
8351
|
+
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
8271
8352
|
readonly content: readonly [{
|
|
8272
8353
|
readonly type: "text";
|
|
8273
8354
|
readonly text: string;
|
|
@@ -8315,121 +8396,40 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
8315
8396
|
readonly [x: string]: Schema.Json;
|
|
8316
8397
|
};
|
|
8317
8398
|
})[]];
|
|
8318
|
-
};
|
|
8319
|
-
} | {
|
|
8320
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
8321
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
8322
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
8323
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
8324
|
-
readonly trace: {
|
|
8325
|
-
readonly span: {
|
|
8326
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
8327
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
8328
|
-
readonly sampled: boolean;
|
|
8329
|
-
readonly tracestate: string | null;
|
|
8330
|
-
};
|
|
8331
|
-
readonly links: readonly {
|
|
8332
|
-
readonly context: {
|
|
8333
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
8334
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
8335
|
-
readonly sampled: boolean;
|
|
8336
|
-
readonly tracestate: string | null;
|
|
8337
|
-
};
|
|
8338
|
-
readonly attributes: {
|
|
8339
|
-
readonly [x: string]: string | number | boolean;
|
|
8340
|
-
};
|
|
8341
|
-
}[];
|
|
8342
|
-
};
|
|
8343
|
-
readonly durability: "durable";
|
|
8344
|
-
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
8345
|
-
readonly namespace: "effect-durable-agent";
|
|
8346
|
-
readonly type: "
|
|
8347
|
-
readonly schemaVersion: number;
|
|
8348
|
-
readonly payload: {
|
|
8349
|
-
readonly
|
|
8350
|
-
readonly
|
|
8351
|
-
readonly
|
|
8352
|
-
readonly content: readonly [{
|
|
8353
|
-
readonly type: "text";
|
|
8354
|
-
readonly text: string;
|
|
8355
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8356
|
-
readonly options: {
|
|
8357
|
-
readonly [x: string]: Schema.Json;
|
|
8358
|
-
};
|
|
8359
|
-
}, ...{
|
|
8360
|
-
readonly type: "text";
|
|
8361
|
-
readonly text: string;
|
|
8362
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8363
|
-
readonly options: {
|
|
8364
|
-
readonly [x: string]: Schema.Json;
|
|
8365
|
-
};
|
|
8366
|
-
}[]] | readonly [{
|
|
8367
|
-
readonly type: "text";
|
|
8368
|
-
readonly text: string;
|
|
8369
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8370
|
-
readonly options: {
|
|
8371
|
-
readonly [x: string]: Schema.Json;
|
|
8372
|
-
};
|
|
8373
|
-
} | {
|
|
8374
|
-
readonly type: "file";
|
|
8375
|
-
readonly mediaType: string;
|
|
8376
|
-
readonly fileName?: string | undefined;
|
|
8377
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
8378
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8379
|
-
readonly options: {
|
|
8380
|
-
readonly [x: string]: Schema.Json;
|
|
8381
|
-
};
|
|
8382
|
-
}, ...({
|
|
8383
|
-
readonly type: "text";
|
|
8384
|
-
readonly text: string;
|
|
8385
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8386
|
-
readonly options: {
|
|
8387
|
-
readonly [x: string]: Schema.Json;
|
|
8388
|
-
};
|
|
8389
|
-
} | {
|
|
8390
|
-
readonly type: "file";
|
|
8391
|
-
readonly mediaType: string;
|
|
8392
|
-
readonly fileName?: string | undefined;
|
|
8393
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
8394
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8395
|
-
readonly options: {
|
|
8396
|
-
readonly [x: string]: Schema.Json;
|
|
8397
|
-
};
|
|
8398
|
-
})[]];
|
|
8399
|
-
};
|
|
8400
|
-
} | {
|
|
8401
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
8402
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
8403
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
8404
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
8405
|
-
readonly trace: {
|
|
8406
|
-
readonly span: {
|
|
8407
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
8408
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
8409
|
-
readonly sampled: boolean;
|
|
8410
|
-
readonly tracestate: string | null;
|
|
8411
|
-
};
|
|
8412
|
-
readonly links: readonly {
|
|
8413
|
-
readonly context: {
|
|
8414
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
8415
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
8416
|
-
readonly sampled: boolean;
|
|
8417
|
-
readonly tracestate: string | null;
|
|
8418
|
-
};
|
|
8419
|
-
readonly attributes: {
|
|
8420
|
-
readonly [x: string]: string | number | boolean;
|
|
8421
|
-
};
|
|
8422
|
-
}[];
|
|
8423
|
-
};
|
|
8424
|
-
readonly durability: "durable";
|
|
8425
|
-
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
8426
|
-
readonly namespace: "effect-durable-agent";
|
|
8427
|
-
readonly type: "SteeringMessageCancelled";
|
|
8428
|
-
readonly schemaVersion: number;
|
|
8429
|
-
readonly payload: {
|
|
8430
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
8431
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
8432
|
-
readonly reason: string;
|
|
8399
|
+
};
|
|
8400
|
+
} | {
|
|
8401
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
8402
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
8403
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
8404
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
8405
|
+
readonly trace: {
|
|
8406
|
+
readonly span: {
|
|
8407
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
8408
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
8409
|
+
readonly sampled: boolean;
|
|
8410
|
+
readonly tracestate: string | null;
|
|
8411
|
+
};
|
|
8412
|
+
readonly links: readonly {
|
|
8413
|
+
readonly context: {
|
|
8414
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
8415
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
8416
|
+
readonly sampled: boolean;
|
|
8417
|
+
readonly tracestate: string | null;
|
|
8418
|
+
};
|
|
8419
|
+
readonly attributes: {
|
|
8420
|
+
readonly [x: string]: string | number | boolean;
|
|
8421
|
+
};
|
|
8422
|
+
}[];
|
|
8423
|
+
};
|
|
8424
|
+
readonly durability: "durable";
|
|
8425
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
8426
|
+
readonly namespace: "effect-durable-agent";
|
|
8427
|
+
readonly type: "SteeringMessageCancelled";
|
|
8428
|
+
readonly schemaVersion: number;
|
|
8429
|
+
readonly payload: {
|
|
8430
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
8431
|
+
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
8432
|
+
readonly reason: string;
|
|
8433
8433
|
};
|
|
8434
8434
|
} | {
|
|
8435
8435
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -10458,6 +10458,108 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
10458
10458
|
readonly partsRecorded: Schema.Int;
|
|
10459
10459
|
readonly terminal: Schema.Union<readonly [Schema.TaggedStruct<"InferenceRunFinished", {
|
|
10460
10460
|
readonly committed: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
|
|
10461
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10462
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10463
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
10464
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
10465
|
+
readonly trace: {
|
|
10466
|
+
readonly span: {
|
|
10467
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10468
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10469
|
+
readonly sampled: boolean;
|
|
10470
|
+
readonly tracestate: string | null;
|
|
10471
|
+
};
|
|
10472
|
+
readonly links: readonly {
|
|
10473
|
+
readonly context: {
|
|
10474
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10475
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10476
|
+
readonly sampled: boolean;
|
|
10477
|
+
readonly tracestate: string | null;
|
|
10478
|
+
};
|
|
10479
|
+
readonly attributes: {
|
|
10480
|
+
readonly [x: string]: string | number | boolean;
|
|
10481
|
+
};
|
|
10482
|
+
}[];
|
|
10483
|
+
};
|
|
10484
|
+
readonly durability: "durable";
|
|
10485
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10486
|
+
readonly namespace: "effect-durable-agent";
|
|
10487
|
+
readonly type: "CommandCompleted";
|
|
10488
|
+
readonly schemaVersion: number;
|
|
10489
|
+
readonly payload: {
|
|
10490
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
10491
|
+
};
|
|
10492
|
+
} | {
|
|
10493
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10494
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10495
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
10496
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
10497
|
+
readonly trace: {
|
|
10498
|
+
readonly span: {
|
|
10499
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10500
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10501
|
+
readonly sampled: boolean;
|
|
10502
|
+
readonly tracestate: string | null;
|
|
10503
|
+
};
|
|
10504
|
+
readonly links: readonly {
|
|
10505
|
+
readonly context: {
|
|
10506
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10507
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10508
|
+
readonly sampled: boolean;
|
|
10509
|
+
readonly tracestate: string | null;
|
|
10510
|
+
};
|
|
10511
|
+
readonly attributes: {
|
|
10512
|
+
readonly [x: string]: string | number | boolean;
|
|
10513
|
+
};
|
|
10514
|
+
}[];
|
|
10515
|
+
};
|
|
10516
|
+
readonly durability: "durable";
|
|
10517
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10518
|
+
readonly namespace: "effect-durable-agent";
|
|
10519
|
+
readonly type: "CommandFailed";
|
|
10520
|
+
readonly schemaVersion: number;
|
|
10521
|
+
readonly payload: {
|
|
10522
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
10523
|
+
readonly error: {
|
|
10524
|
+
readonly message: string;
|
|
10525
|
+
readonly code?: string | undefined;
|
|
10526
|
+
readonly details?: unknown;
|
|
10527
|
+
};
|
|
10528
|
+
};
|
|
10529
|
+
} | {
|
|
10530
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10531
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10532
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
10533
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
10534
|
+
readonly trace: {
|
|
10535
|
+
readonly span: {
|
|
10536
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10537
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10538
|
+
readonly sampled: boolean;
|
|
10539
|
+
readonly tracestate: string | null;
|
|
10540
|
+
};
|
|
10541
|
+
readonly links: readonly {
|
|
10542
|
+
readonly context: {
|
|
10543
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10544
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10545
|
+
readonly sampled: boolean;
|
|
10546
|
+
readonly tracestate: string | null;
|
|
10547
|
+
};
|
|
10548
|
+
readonly attributes: {
|
|
10549
|
+
readonly [x: string]: string | number | boolean;
|
|
10550
|
+
};
|
|
10551
|
+
}[];
|
|
10552
|
+
};
|
|
10553
|
+
readonly durability: "durable";
|
|
10554
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10555
|
+
readonly namespace: "effect-durable-agent";
|
|
10556
|
+
readonly type: "CommandCancelled";
|
|
10557
|
+
readonly schemaVersion: number;
|
|
10558
|
+
readonly payload: {
|
|
10559
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
10560
|
+
readonly reason: string;
|
|
10561
|
+
};
|
|
10562
|
+
} | {
|
|
10461
10563
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10462
10564
|
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10463
10565
|
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
@@ -10783,121 +10885,14 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
10783
10885
|
readonly durability: "durable";
|
|
10784
10886
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10785
10887
|
readonly namespace: "effect-durable-agent";
|
|
10786
|
-
readonly type: "SessionConfigured";
|
|
10787
|
-
readonly schemaVersion: number;
|
|
10788
|
-
readonly payload: {
|
|
10789
|
-
readonly modelSelection: {
|
|
10790
|
-
readonly provider: string;
|
|
10791
|
-
readonly modelId: string;
|
|
10792
|
-
readonly settings?: unknown;
|
|
10793
|
-
};
|
|
10794
|
-
};
|
|
10795
|
-
} | {
|
|
10796
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10797
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10798
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
10799
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
10800
|
-
readonly trace: {
|
|
10801
|
-
readonly span: {
|
|
10802
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10803
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10804
|
-
readonly sampled: boolean;
|
|
10805
|
-
readonly tracestate: string | null;
|
|
10806
|
-
};
|
|
10807
|
-
readonly links: readonly {
|
|
10808
|
-
readonly context: {
|
|
10809
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10810
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10811
|
-
readonly sampled: boolean;
|
|
10812
|
-
readonly tracestate: string | null;
|
|
10813
|
-
};
|
|
10814
|
-
readonly attributes: {
|
|
10815
|
-
readonly [x: string]: string | number | boolean;
|
|
10816
|
-
};
|
|
10817
|
-
}[];
|
|
10818
|
-
};
|
|
10819
|
-
readonly durability: "durable";
|
|
10820
|
-
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10821
|
-
readonly namespace: "effect-durable-agent";
|
|
10822
|
-
readonly type: "DeciderAccepted";
|
|
10823
|
-
readonly schemaVersion: number;
|
|
10824
|
-
readonly payload: {
|
|
10825
|
-
readonly decider: string;
|
|
10826
|
-
readonly idempotencyKey: string;
|
|
10827
|
-
readonly result: Schema.Json;
|
|
10828
|
-
};
|
|
10829
|
-
} | {
|
|
10830
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10831
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10832
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
10833
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
10834
|
-
readonly trace: {
|
|
10835
|
-
readonly span: {
|
|
10836
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10837
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10838
|
-
readonly sampled: boolean;
|
|
10839
|
-
readonly tracestate: string | null;
|
|
10840
|
-
};
|
|
10841
|
-
readonly links: readonly {
|
|
10842
|
-
readonly context: {
|
|
10843
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10844
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10845
|
-
readonly sampled: boolean;
|
|
10846
|
-
readonly tracestate: string | null;
|
|
10847
|
-
};
|
|
10848
|
-
readonly attributes: {
|
|
10849
|
-
readonly [x: string]: string | number | boolean;
|
|
10850
|
-
};
|
|
10851
|
-
}[];
|
|
10852
|
-
};
|
|
10853
|
-
readonly durability: "durable";
|
|
10854
|
-
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10855
|
-
readonly namespace: "effect-durable-agent";
|
|
10856
|
-
readonly type: "RunSchedulingRequested";
|
|
10857
|
-
readonly schemaVersion: number;
|
|
10858
|
-
readonly payload: {
|
|
10859
|
-
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
10860
|
-
readonly work: {
|
|
10861
|
-
readonly _tag: "Command";
|
|
10862
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
10863
|
-
} | {
|
|
10864
|
-
readonly _tag: "Recovery";
|
|
10865
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
10866
|
-
readonly interruptedRunId: string & import("effect/Brand").Brand<"RunId">;
|
|
10867
|
-
readonly inputMessageIds: readonly (string & import("effect/Brand").Brand<"MessageId">)[];
|
|
10868
|
-
};
|
|
10869
|
-
};
|
|
10870
|
-
} | {
|
|
10871
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10872
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10873
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
10874
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
10875
|
-
readonly trace: {
|
|
10876
|
-
readonly span: {
|
|
10877
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10878
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10879
|
-
readonly sampled: boolean;
|
|
10880
|
-
readonly tracestate: string | null;
|
|
10881
|
-
};
|
|
10882
|
-
readonly links: readonly {
|
|
10883
|
-
readonly context: {
|
|
10884
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10885
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10886
|
-
readonly sampled: boolean;
|
|
10887
|
-
readonly tracestate: string | null;
|
|
10888
|
-
};
|
|
10889
|
-
readonly attributes: {
|
|
10890
|
-
readonly [x: string]: string | number | boolean;
|
|
10891
|
-
};
|
|
10892
|
-
}[];
|
|
10893
|
-
};
|
|
10894
|
-
readonly durability: "durable";
|
|
10895
|
-
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10896
|
-
readonly namespace: "effect-durable-agent";
|
|
10897
|
-
readonly type: "RunSchedulingDelivered";
|
|
10888
|
+
readonly type: "SessionConfigured";
|
|
10898
10889
|
readonly schemaVersion: number;
|
|
10899
10890
|
readonly payload: {
|
|
10900
|
-
readonly
|
|
10891
|
+
readonly modelSelection: {
|
|
10892
|
+
readonly provider: string;
|
|
10893
|
+
readonly modelId: string;
|
|
10894
|
+
readonly settings?: unknown;
|
|
10895
|
+
};
|
|
10901
10896
|
};
|
|
10902
10897
|
} | {
|
|
10903
10898
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -10926,11 +10921,12 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
10926
10921
|
readonly durability: "durable";
|
|
10927
10922
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10928
10923
|
readonly namespace: "effect-durable-agent";
|
|
10929
|
-
readonly type: "
|
|
10924
|
+
readonly type: "DeciderAccepted";
|
|
10930
10925
|
readonly schemaVersion: number;
|
|
10931
10926
|
readonly payload: {
|
|
10932
|
-
readonly
|
|
10933
|
-
readonly
|
|
10927
|
+
readonly decider: string;
|
|
10928
|
+
readonly idempotencyKey: string;
|
|
10929
|
+
readonly result: Schema.Json;
|
|
10934
10930
|
};
|
|
10935
10931
|
} | {
|
|
10936
10932
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -10959,11 +10955,19 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
10959
10955
|
readonly durability: "durable";
|
|
10960
10956
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10961
10957
|
readonly namespace: "effect-durable-agent";
|
|
10962
|
-
readonly type: "
|
|
10958
|
+
readonly type: "RunSchedulingRequested";
|
|
10963
10959
|
readonly schemaVersion: number;
|
|
10964
10960
|
readonly payload: {
|
|
10965
10961
|
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
10966
|
-
readonly
|
|
10962
|
+
readonly work: {
|
|
10963
|
+
readonly _tag: "Command";
|
|
10964
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
10965
|
+
} | {
|
|
10966
|
+
readonly _tag: "Recovery";
|
|
10967
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
10968
|
+
readonly interruptedRunId: string & import("effect/Brand").Brand<"RunId">;
|
|
10969
|
+
readonly inputMessageIds: readonly (string & import("effect/Brand").Brand<"MessageId">)[];
|
|
10970
|
+
};
|
|
10967
10971
|
};
|
|
10968
10972
|
} | {
|
|
10969
10973
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -10992,10 +10996,10 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
10992
10996
|
readonly durability: "durable";
|
|
10993
10997
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10994
10998
|
readonly namespace: "effect-durable-agent";
|
|
10995
|
-
readonly type: "
|
|
10999
|
+
readonly type: "RunSchedulingDelivered";
|
|
10996
11000
|
readonly schemaVersion: number;
|
|
10997
11001
|
readonly payload: {
|
|
10998
|
-
readonly
|
|
11002
|
+
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
10999
11003
|
};
|
|
11000
11004
|
} | {
|
|
11001
11005
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -11024,10 +11028,11 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
11024
11028
|
readonly durability: "durable";
|
|
11025
11029
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
11026
11030
|
readonly namespace: "effect-durable-agent";
|
|
11027
|
-
readonly type: "
|
|
11031
|
+
readonly type: "RunSchedulingInvalidated";
|
|
11028
11032
|
readonly schemaVersion: number;
|
|
11029
11033
|
readonly payload: {
|
|
11030
|
-
readonly
|
|
11034
|
+
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
11035
|
+
readonly reason: "ineligible" | "interrupted" | "message-cancelled" | "stopped";
|
|
11031
11036
|
};
|
|
11032
11037
|
} | {
|
|
11033
11038
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -11056,10 +11061,11 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
11056
11061
|
readonly durability: "durable";
|
|
11057
11062
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
11058
11063
|
readonly namespace: "effect-durable-agent";
|
|
11059
|
-
readonly type: "
|
|
11064
|
+
readonly type: "RunSchedulingGranted";
|
|
11060
11065
|
readonly schemaVersion: number;
|
|
11061
11066
|
readonly payload: {
|
|
11062
|
-
readonly
|
|
11067
|
+
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
11068
|
+
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
11063
11069
|
};
|
|
11064
11070
|
} | {
|
|
11065
11071
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -11088,15 +11094,10 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
11088
11094
|
readonly durability: "durable";
|
|
11089
11095
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
11090
11096
|
readonly namespace: "effect-durable-agent";
|
|
11091
|
-
readonly type: "
|
|
11097
|
+
readonly type: "CommandAdmitted";
|
|
11092
11098
|
readonly schemaVersion: number;
|
|
11093
11099
|
readonly payload: {
|
|
11094
|
-
readonly
|
|
11095
|
-
readonly error: {
|
|
11096
|
-
readonly message: string;
|
|
11097
|
-
readonly code?: string | undefined;
|
|
11098
|
-
readonly details?: unknown;
|
|
11099
|
-
};
|
|
11100
|
+
readonly command: CancelPendingMessageCommand | PromotePendingMessageCommand | ResumePendingMessagesCommand | StopTurnCommand | SubmitMessageCommand;
|
|
11100
11101
|
};
|
|
11101
11102
|
} | {
|
|
11102
11103
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -11125,11 +11126,10 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
11125
11126
|
readonly durability: "durable";
|
|
11126
11127
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
11127
11128
|
readonly namespace: "effect-durable-agent";
|
|
11128
|
-
readonly type: "
|
|
11129
|
+
readonly type: "CommandStarted";
|
|
11129
11130
|
readonly schemaVersion: number;
|
|
11130
11131
|
readonly payload: {
|
|
11131
11132
|
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
11132
|
-
readonly reason: string;
|
|
11133
11133
|
};
|
|
11134
11134
|
} | {
|
|
11135
11135
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -13388,6 +13388,108 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
13388
13388
|
readonly responseParts: Schema.$Array<Schema.Any>;
|
|
13389
13389
|
}>, Schema.TaggedStruct<"InferenceRunFailed", {
|
|
13390
13390
|
readonly committed: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
|
|
13391
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
13392
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
13393
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
13394
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
13395
|
+
readonly trace: {
|
|
13396
|
+
readonly span: {
|
|
13397
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13398
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13399
|
+
readonly sampled: boolean;
|
|
13400
|
+
readonly tracestate: string | null;
|
|
13401
|
+
};
|
|
13402
|
+
readonly links: readonly {
|
|
13403
|
+
readonly context: {
|
|
13404
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13405
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13406
|
+
readonly sampled: boolean;
|
|
13407
|
+
readonly tracestate: string | null;
|
|
13408
|
+
};
|
|
13409
|
+
readonly attributes: {
|
|
13410
|
+
readonly [x: string]: string | number | boolean;
|
|
13411
|
+
};
|
|
13412
|
+
}[];
|
|
13413
|
+
};
|
|
13414
|
+
readonly durability: "durable";
|
|
13415
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
13416
|
+
readonly namespace: "effect-durable-agent";
|
|
13417
|
+
readonly type: "CommandCompleted";
|
|
13418
|
+
readonly schemaVersion: number;
|
|
13419
|
+
readonly payload: {
|
|
13420
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
13421
|
+
};
|
|
13422
|
+
} | {
|
|
13423
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
13424
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
13425
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
13426
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
13427
|
+
readonly trace: {
|
|
13428
|
+
readonly span: {
|
|
13429
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13430
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13431
|
+
readonly sampled: boolean;
|
|
13432
|
+
readonly tracestate: string | null;
|
|
13433
|
+
};
|
|
13434
|
+
readonly links: readonly {
|
|
13435
|
+
readonly context: {
|
|
13436
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13437
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13438
|
+
readonly sampled: boolean;
|
|
13439
|
+
readonly tracestate: string | null;
|
|
13440
|
+
};
|
|
13441
|
+
readonly attributes: {
|
|
13442
|
+
readonly [x: string]: string | number | boolean;
|
|
13443
|
+
};
|
|
13444
|
+
}[];
|
|
13445
|
+
};
|
|
13446
|
+
readonly durability: "durable";
|
|
13447
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
13448
|
+
readonly namespace: "effect-durable-agent";
|
|
13449
|
+
readonly type: "CommandFailed";
|
|
13450
|
+
readonly schemaVersion: number;
|
|
13451
|
+
readonly payload: {
|
|
13452
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
13453
|
+
readonly error: {
|
|
13454
|
+
readonly message: string;
|
|
13455
|
+
readonly code?: string | undefined;
|
|
13456
|
+
readonly details?: unknown;
|
|
13457
|
+
};
|
|
13458
|
+
};
|
|
13459
|
+
} | {
|
|
13460
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
13461
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
13462
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
13463
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
13464
|
+
readonly trace: {
|
|
13465
|
+
readonly span: {
|
|
13466
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13467
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13468
|
+
readonly sampled: boolean;
|
|
13469
|
+
readonly tracestate: string | null;
|
|
13470
|
+
};
|
|
13471
|
+
readonly links: readonly {
|
|
13472
|
+
readonly context: {
|
|
13473
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13474
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13475
|
+
readonly sampled: boolean;
|
|
13476
|
+
readonly tracestate: string | null;
|
|
13477
|
+
};
|
|
13478
|
+
readonly attributes: {
|
|
13479
|
+
readonly [x: string]: string | number | boolean;
|
|
13480
|
+
};
|
|
13481
|
+
}[];
|
|
13482
|
+
};
|
|
13483
|
+
readonly durability: "durable";
|
|
13484
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
13485
|
+
readonly namespace: "effect-durable-agent";
|
|
13486
|
+
readonly type: "CommandCancelled";
|
|
13487
|
+
readonly schemaVersion: number;
|
|
13488
|
+
readonly payload: {
|
|
13489
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
13490
|
+
readonly reason: string;
|
|
13491
|
+
};
|
|
13492
|
+
} | {
|
|
13391
13493
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
13392
13494
|
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
13393
13495
|
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
@@ -13959,108 +14061,6 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
13959
14061
|
readonly payload: {
|
|
13960
14062
|
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
13961
14063
|
};
|
|
13962
|
-
} | {
|
|
13963
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
13964
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
13965
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
13966
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
13967
|
-
readonly trace: {
|
|
13968
|
-
readonly span: {
|
|
13969
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13970
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13971
|
-
readonly sampled: boolean;
|
|
13972
|
-
readonly tracestate: string | null;
|
|
13973
|
-
};
|
|
13974
|
-
readonly links: readonly {
|
|
13975
|
-
readonly context: {
|
|
13976
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13977
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13978
|
-
readonly sampled: boolean;
|
|
13979
|
-
readonly tracestate: string | null;
|
|
13980
|
-
};
|
|
13981
|
-
readonly attributes: {
|
|
13982
|
-
readonly [x: string]: string | number | boolean;
|
|
13983
|
-
};
|
|
13984
|
-
}[];
|
|
13985
|
-
};
|
|
13986
|
-
readonly durability: "durable";
|
|
13987
|
-
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
13988
|
-
readonly namespace: "effect-durable-agent";
|
|
13989
|
-
readonly type: "CommandCompleted";
|
|
13990
|
-
readonly schemaVersion: number;
|
|
13991
|
-
readonly payload: {
|
|
13992
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
13993
|
-
};
|
|
13994
|
-
} | {
|
|
13995
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
13996
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
13997
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
13998
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
13999
|
-
readonly trace: {
|
|
14000
|
-
readonly span: {
|
|
14001
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
14002
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
14003
|
-
readonly sampled: boolean;
|
|
14004
|
-
readonly tracestate: string | null;
|
|
14005
|
-
};
|
|
14006
|
-
readonly links: readonly {
|
|
14007
|
-
readonly context: {
|
|
14008
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
14009
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
14010
|
-
readonly sampled: boolean;
|
|
14011
|
-
readonly tracestate: string | null;
|
|
14012
|
-
};
|
|
14013
|
-
readonly attributes: {
|
|
14014
|
-
readonly [x: string]: string | number | boolean;
|
|
14015
|
-
};
|
|
14016
|
-
}[];
|
|
14017
|
-
};
|
|
14018
|
-
readonly durability: "durable";
|
|
14019
|
-
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
14020
|
-
readonly namespace: "effect-durable-agent";
|
|
14021
|
-
readonly type: "CommandFailed";
|
|
14022
|
-
readonly schemaVersion: number;
|
|
14023
|
-
readonly payload: {
|
|
14024
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
14025
|
-
readonly error: {
|
|
14026
|
-
readonly message: string;
|
|
14027
|
-
readonly code?: string | undefined;
|
|
14028
|
-
readonly details?: unknown;
|
|
14029
|
-
};
|
|
14030
|
-
};
|
|
14031
|
-
} | {
|
|
14032
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
14033
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
14034
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
14035
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
14036
|
-
readonly trace: {
|
|
14037
|
-
readonly span: {
|
|
14038
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
14039
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
14040
|
-
readonly sampled: boolean;
|
|
14041
|
-
readonly tracestate: string | null;
|
|
14042
|
-
};
|
|
14043
|
-
readonly links: readonly {
|
|
14044
|
-
readonly context: {
|
|
14045
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
14046
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
14047
|
-
readonly sampled: boolean;
|
|
14048
|
-
readonly tracestate: string | null;
|
|
14049
|
-
};
|
|
14050
|
-
readonly attributes: {
|
|
14051
|
-
readonly [x: string]: string | number | boolean;
|
|
14052
|
-
};
|
|
14053
|
-
}[];
|
|
14054
|
-
};
|
|
14055
|
-
readonly durability: "durable";
|
|
14056
|
-
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
14057
|
-
readonly namespace: "effect-durable-agent";
|
|
14058
|
-
readonly type: "CommandCancelled";
|
|
14059
|
-
readonly schemaVersion: number;
|
|
14060
|
-
readonly payload: {
|
|
14061
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
14062
|
-
readonly reason: string;
|
|
14063
|
-
};
|
|
14064
14064
|
} | {
|
|
14065
14065
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
14066
14066
|
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
@@ -52930,4 +52930,4 @@ declare const activeTurnIdentityForCommand: (state: ReducedState, commandId: Com
|
|
|
52930
52930
|
declare const classifyRecoverableWork: (state: ReducedState) => RecoverableWork;
|
|
52931
52931
|
//#endregion
|
|
52932
52932
|
export { SessionCommandCancelled as $, maxDeciderIdempotencyKeyLength as $n, defaultCompactionCharsPerToken as $t, TurnTerminal as A, RunSchedulingWork as An, EDASinkCheckpoint as At, pendingCommands as B, EDADeciderItem as Bn, CompactionExecutor as Bt, RunRecord as C, RunGrantResult as Cn, EDADurableSinkDefinition as Ct, ToolDecision as D, RunSchedulingInput as Dn, EDARawDurableSinkDefinition as Dt, ToolCallRecord as E, RunSchedulingCancellationPlan as En, EDAProjectedSink as Et, encodeReducedStateCheckpoint as F, waitingRunControl as Fn, EDASinkRegistry as Ft, EDACommandTerminalEvent as G, EDAErasedDecision as Gn, CompactionPolicy as Gt, reduceCommittedEvents as H, EDADeciderRegistry as Hn, CompactionExecutorShape as Ht, foldReducedState as I, SessionCommandAdmissionConflict as In, EDASinkRegistryShape as It, EDARuntimeError as J, deciderMarkerDedupeKey as Jn, CompactionRunner as Jt, EDARuntime as K, EDAEventDraft as Kn, CompactionPolicyInput as Kt, frameworkReducedStateReducerName as L, EDADecider as Ln, EDASinkRunnerStartInput as Lt, activeTurnIdentityForCommand as M, planRunSchedulingCancellation as Mn, EDASinkDurableBatch as Mt, classifyRecoverableWork as N, planWaitingRunInterruption as Nn, EDASinkInterests as Nt, ToolTerminal as O, RunSchedulingRequest as On, EDARawSink as Ot, decodeReducedStateCheckpoint as P, runSchedulingInputMessageIds as Pn, EDASinkRawDurableBatch as Pt, SessionCommandAdmissionError as Q, makeEDADeciderRegistry as Qn, PromptPrefixSummaryCompactionExecutorOptions as Qt, frameworkReducedStateReducerSchemaVersion as R, EDADeciderDefinition as Rn, ApproximateTokenThresholdCompactionPolicyOptions as Rt, ReducedStateCheckpointToolTerminal as S, LocalRunResolution as Sn, RunSchedulingDeliveryError as St, StopRequestRecord as T, RunResolution as Tn, EDAProjectedDurableSinkDefinition as Tt, reducedStateCheckpointEventSeqs as U, EDADeciderView as Un, CompactionOutput as Ut, pendingStopCommand as V, EDADeciderOutcome as Vn, CompactionExecutorInput as Vt, CommittedCommandTerminalEvent as W, EDADecision as Wn, CompactionPlan as Wt, EDARuntimeSubmit as X, edaReservedDeciderNamePrefix as Xn, CompactionRunnerShape as Xt, EDARuntimeShape as Y, deciderNamePattern as Yn, CompactionRunnerInput as Yt, EDASubmittable as Z, encodeDeciderJson as Zn, LanguageModelSummaryCompactionExecutorOptions as Zt, ReducedStateCheckpointCommandRecord as _, EDASessionQuery as _n, InferenceRunnerStreamPart as _t, CompactionRecord as a, EventFactory as an, EDAPromptProjector as ar, SessionDrainProcessed as at, ReducedStateCheckpointToolCallRecord as b, LiveEventBus as bn, RunSchedulerShape as bt, InferenceRecord as c, EDAToolRegistry as cn, buildEDAPrompt as cr, SessionNoRunnableCommand as ct, LifecycleTiming as d, ToolRecovery as dn, nativeCompactionSummaryMessage as dr, SessionState as dt, defaultCompactionMinSummarizableTokens as en, maxDeciderResultBytes as er, SessionCommandCompleted as et, MessageRecord as f, ToolRecoveryPolicy as fn, SessionStateError as ft, ReducedState as g, EDASessionEventPage as gn, InferenceRunner as gt, RecoveryContinuationRecord as h, toolRecoveryPolicy as hn, TurnRunner as ht, CommandTerminal as i, promptPrefixSummaryCompactionExecutor as in, EDAPromptProjectionInput as ir, SessionDecideError as it, activeCommand as j, canGrantRun as jn, EDASinkContext as jt, TurnRecord as k, RunSchedulingRequestRecord as kn, EDASink as kt, InferenceTerminal as l, EDAToolRegistryShape as ln, getNativeCompaction as lr, SessionNoRunnableReason as lt, RecoverableWork as m, maxToolCallAttempts as mn, SessionStateSnapshotData as mt, ActiveTurnIdentity as n, defaultCompactionSummaryInstructions as nn, EDANativeCompaction as nr, SessionCommandOutcome as nt, CompactionTerminal as o, EDAModelToolkit as on, EDAPromptProjectorShape as or, SessionDrainResult as ot, PendingCommand as p, makeEDAToolkit as pn, SessionStateShape as pt, EDARuntimeConfig as q, deciderIdempotencyKeyViolation as qn, CompactionPolicyShape as qt, CommandRecord as r, defaultCompactionThresholdTokens as rn, EDAProjectedPromptContext as rr, SessionCommandResult as rt, ContextRecord as s, EDAToolExecutionContext as sn, EDA_PROMPT_OPTIONS_KEY as sr, SessionForkedCommand as st, ActiveCommandEvidence as t, defaultCompactionRetainTailTokens as tn, SessionContext as tr, SessionCommandFailed as tt, LifecycleFailure as u, ToolParamsSchema as un, isEDACacheBreakpoint as ur, SessionRunInput as ut, ReducedStateCheckpointMessageRecord as v, EDASessionQueryShape as vn, ToolExecutor as vt, RunTerminal as w, RunRequestOutcome as wn, EDAEphemeralSinkDefinition as wt, ReducedStateCheckpointToolDecision as x, DeferredRunResolution as xn, RunSchedulingDelivery as xt, ReducedStateCheckpointPayload as y, EDASessionSnapshot as yn, RunScheduler as yt, initialReducedState as z, EDADeciderError as zn, CompactionError as zt };
|
|
52933
|
-
//# sourceMappingURL=reduced-state-
|
|
52933
|
+
//# sourceMappingURL=reduced-state-DB_iANjR.d.ts.map
|