effect-durable-agent 0.1.0-alpha.26 → 0.1.0-alpha.28
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-o6sDIiwO.d.ts → delivery-Ckk_RmGw.d.ts} +2 -2
- package/dist/domain/command-queues.d.ts +1 -1
- package/dist/domain/message-transcript.d.ts +36 -2
- 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-B5WxKSM5.d.ts → reduced-state-C0CxfyUD.d.ts} +471 -858
- package/dist/services/compaction.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.d.ts +1 -1
- package/dist/services/runtime.js +0 -1
- package/dist/services/runtime.js.map +1 -1
- package/dist/services/session-query.d.ts +2 -2
- package/dist/services/session-query.js +5 -19
- package/dist/services/session-query.js.map +1 -1
- package/dist/services/session-state.d.ts +1 -1
- package/dist/services/session-store.js +2 -2
- package/dist/services/session-store.js.map +1 -1
- package/dist/services/sink-registry.d.ts +1 -1
- package/dist/services/span-names.d.ts +1 -1
- package/dist/services/span-names.js +0 -1
- package/dist/services/span-names.js.map +1 -1
- package/dist/{subscription-Dzr5LqPX.js → subscription-hkD4M3xp.js} +9 -4
- package/dist/subscription-hkD4M3xp.js.map +1 -0
- package/dist/testkit/layers.d.ts +1 -1
- package/dist/testkit/transcript.d.ts +1 -1
- package/dist/transcript.d.ts +2 -2
- package/dist/transcript.js +3 -3
- package/dist/websocket/events.d.ts +1 -1
- package/dist/websocket.d.ts +1 -1
- package/dist/websocket.js +1 -1
- package/dist/{window-read-DBf1Iktt.d.ts → window-read-BG8lxMVB.d.ts} +11 -2
- package/dist/{window-read-Bk7-4ALN.js → window-read-C8anZVdl.js} +21 -2
- package/dist/window-read-C8anZVdl.js.map +1 -0
- package/package.json +1 -1
- package/dist/subscription-Dzr5LqPX.js.map +0 -1
- package/dist/window-read-Bk7-4ALN.js.map +0 -1
|
@@ -5991,6 +5991,105 @@ interface RunInferenceInput extends RunInferenceContext {
|
|
|
5991
5991
|
/** Summary returned after one provider inference stream is consumed. */
|
|
5992
5992
|
declare const InferenceRunResult: Schema.Struct<{
|
|
5993
5993
|
readonly started: Schema.Codec<CommittedDurableEvent<{
|
|
5994
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
5995
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
5996
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
5997
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
5998
|
+
readonly trace: {
|
|
5999
|
+
readonly span: {
|
|
6000
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6001
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6002
|
+
readonly sampled: boolean;
|
|
6003
|
+
readonly tracestate: string | null;
|
|
6004
|
+
};
|
|
6005
|
+
readonly links: readonly {
|
|
6006
|
+
readonly context: {
|
|
6007
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6008
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6009
|
+
readonly sampled: boolean;
|
|
6010
|
+
readonly tracestate: string | null;
|
|
6011
|
+
};
|
|
6012
|
+
readonly attributes: {
|
|
6013
|
+
readonly [x: string]: string | number | boolean;
|
|
6014
|
+
};
|
|
6015
|
+
}[];
|
|
6016
|
+
};
|
|
6017
|
+
readonly durability: "durable";
|
|
6018
|
+
readonly namespace: "effect-durable-agent";
|
|
6019
|
+
readonly type: "CommandCompleted";
|
|
6020
|
+
readonly schemaVersion: number;
|
|
6021
|
+
readonly payload: {
|
|
6022
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
6023
|
+
};
|
|
6024
|
+
} | {
|
|
6025
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
6026
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
6027
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
6028
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
6029
|
+
readonly trace: {
|
|
6030
|
+
readonly span: {
|
|
6031
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6032
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6033
|
+
readonly sampled: boolean;
|
|
6034
|
+
readonly tracestate: string | null;
|
|
6035
|
+
};
|
|
6036
|
+
readonly links: readonly {
|
|
6037
|
+
readonly context: {
|
|
6038
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6039
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6040
|
+
readonly sampled: boolean;
|
|
6041
|
+
readonly tracestate: string | null;
|
|
6042
|
+
};
|
|
6043
|
+
readonly attributes: {
|
|
6044
|
+
readonly [x: string]: string | number | boolean;
|
|
6045
|
+
};
|
|
6046
|
+
}[];
|
|
6047
|
+
};
|
|
6048
|
+
readonly durability: "durable";
|
|
6049
|
+
readonly namespace: "effect-durable-agent";
|
|
6050
|
+
readonly type: "CommandFailed";
|
|
6051
|
+
readonly schemaVersion: number;
|
|
6052
|
+
readonly payload: {
|
|
6053
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
6054
|
+
readonly error: {
|
|
6055
|
+
readonly message: string;
|
|
6056
|
+
readonly code?: string | undefined;
|
|
6057
|
+
readonly details?: unknown;
|
|
6058
|
+
};
|
|
6059
|
+
};
|
|
6060
|
+
} | {
|
|
6061
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
6062
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
6063
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
6064
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
6065
|
+
readonly trace: {
|
|
6066
|
+
readonly span: {
|
|
6067
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6068
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6069
|
+
readonly sampled: boolean;
|
|
6070
|
+
readonly tracestate: string | null;
|
|
6071
|
+
};
|
|
6072
|
+
readonly links: readonly {
|
|
6073
|
+
readonly context: {
|
|
6074
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6075
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6076
|
+
readonly sampled: boolean;
|
|
6077
|
+
readonly tracestate: string | null;
|
|
6078
|
+
};
|
|
6079
|
+
readonly attributes: {
|
|
6080
|
+
readonly [x: string]: string | number | boolean;
|
|
6081
|
+
};
|
|
6082
|
+
}[];
|
|
6083
|
+
};
|
|
6084
|
+
readonly durability: "durable";
|
|
6085
|
+
readonly namespace: "effect-durable-agent";
|
|
6086
|
+
readonly type: "CommandCancelled";
|
|
6087
|
+
readonly schemaVersion: number;
|
|
6088
|
+
readonly payload: {
|
|
6089
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
6090
|
+
readonly reason: string;
|
|
6091
|
+
};
|
|
6092
|
+
} | {
|
|
5994
6093
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
5995
6094
|
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
5996
6095
|
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
@@ -6509,10 +6608,11 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
6509
6608
|
};
|
|
6510
6609
|
readonly durability: "durable";
|
|
6511
6610
|
readonly namespace: "effect-durable-agent";
|
|
6512
|
-
readonly type: "
|
|
6611
|
+
readonly type: "SystemMessageCommitted";
|
|
6513
6612
|
readonly schemaVersion: number;
|
|
6514
6613
|
readonly payload: {
|
|
6515
|
-
readonly
|
|
6614
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
6615
|
+
readonly content: string;
|
|
6516
6616
|
};
|
|
6517
6617
|
} | {
|
|
6518
6618
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -6540,79 +6640,58 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
6540
6640
|
};
|
|
6541
6641
|
readonly durability: "durable";
|
|
6542
6642
|
readonly namespace: "effect-durable-agent";
|
|
6543
|
-
readonly type: "
|
|
6643
|
+
readonly type: "UserMessageCommitted";
|
|
6544
6644
|
readonly schemaVersion: number;
|
|
6545
6645
|
readonly payload: {
|
|
6546
6646
|
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
6547
|
-
readonly
|
|
6548
|
-
|
|
6549
|
-
readonly
|
|
6550
|
-
readonly
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
6555
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
6556
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
6557
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
6558
|
-
readonly trace: {
|
|
6559
|
-
readonly span: {
|
|
6560
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6561
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6562
|
-
readonly sampled: boolean;
|
|
6563
|
-
readonly tracestate: string | null;
|
|
6564
|
-
};
|
|
6565
|
-
readonly links: readonly {
|
|
6566
|
-
readonly context: {
|
|
6567
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6568
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6569
|
-
readonly sampled: boolean;
|
|
6570
|
-
readonly tracestate: string | null;
|
|
6647
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
6648
|
+
readonly content: readonly [{
|
|
6649
|
+
readonly type: "text";
|
|
6650
|
+
readonly text: string;
|
|
6651
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
6652
|
+
readonly options: {
|
|
6653
|
+
readonly [x: string]: Schema.Json;
|
|
6571
6654
|
};
|
|
6572
|
-
|
|
6573
|
-
|
|
6655
|
+
}, ...{
|
|
6656
|
+
readonly type: "text";
|
|
6657
|
+
readonly text: string;
|
|
6658
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
6659
|
+
readonly options: {
|
|
6660
|
+
readonly [x: string]: Schema.Json;
|
|
6574
6661
|
};
|
|
6575
|
-
}[]
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
readonly payload: {
|
|
6582
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
6583
|
-
readonly reason: string;
|
|
6584
|
-
};
|
|
6585
|
-
} | {
|
|
6586
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
6587
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
6588
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
6589
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
6590
|
-
readonly trace: {
|
|
6591
|
-
readonly span: {
|
|
6592
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6593
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6594
|
-
readonly sampled: boolean;
|
|
6595
|
-
readonly tracestate: string | null;
|
|
6596
|
-
};
|
|
6597
|
-
readonly links: readonly {
|
|
6598
|
-
readonly context: {
|
|
6599
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6600
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6601
|
-
readonly sampled: boolean;
|
|
6602
|
-
readonly tracestate: string | null;
|
|
6662
|
+
}[]] | readonly [{
|
|
6663
|
+
readonly type: "text";
|
|
6664
|
+
readonly text: string;
|
|
6665
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
6666
|
+
readonly options: {
|
|
6667
|
+
readonly [x: string]: Schema.Json;
|
|
6603
6668
|
};
|
|
6604
|
-
|
|
6605
|
-
|
|
6669
|
+
} | {
|
|
6670
|
+
readonly type: "file";
|
|
6671
|
+
readonly mediaType: string;
|
|
6672
|
+
readonly fileName?: string | undefined;
|
|
6673
|
+
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
6674
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
6675
|
+
readonly options: {
|
|
6676
|
+
readonly [x: string]: Schema.Json;
|
|
6606
6677
|
};
|
|
6607
|
-
}
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6678
|
+
}, ...({
|
|
6679
|
+
readonly type: "text";
|
|
6680
|
+
readonly text: string;
|
|
6681
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
6682
|
+
readonly options: {
|
|
6683
|
+
readonly [x: string]: Schema.Json;
|
|
6684
|
+
};
|
|
6685
|
+
} | {
|
|
6686
|
+
readonly type: "file";
|
|
6687
|
+
readonly mediaType: string;
|
|
6688
|
+
readonly fileName?: string | undefined;
|
|
6689
|
+
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
6690
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
6691
|
+
readonly options: {
|
|
6692
|
+
readonly [x: string]: Schema.Json;
|
|
6693
|
+
};
|
|
6694
|
+
})[]];
|
|
6616
6695
|
};
|
|
6617
6696
|
} | {
|
|
6618
6697
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -6640,11 +6719,12 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
6640
6719
|
};
|
|
6641
6720
|
readonly durability: "durable";
|
|
6642
6721
|
readonly namespace: "effect-durable-agent";
|
|
6643
|
-
readonly type: "
|
|
6722
|
+
readonly type: "SteeringMessageQueued";
|
|
6644
6723
|
readonly schemaVersion: number;
|
|
6645
6724
|
readonly payload: {
|
|
6646
6725
|
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
6647
6726
|
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
6727
|
+
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
6648
6728
|
readonly content: readonly [{
|
|
6649
6729
|
readonly type: "text";
|
|
6650
6730
|
readonly text: string;
|
|
@@ -6719,12 +6799,45 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
6719
6799
|
};
|
|
6720
6800
|
readonly durability: "durable";
|
|
6721
6801
|
readonly namespace: "effect-durable-agent";
|
|
6722
|
-
readonly type: "
|
|
6802
|
+
readonly type: "SteeringMessageCancelled";
|
|
6723
6803
|
readonly schemaVersion: number;
|
|
6724
6804
|
readonly payload: {
|
|
6725
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
6726
6805
|
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
6727
6806
|
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
6807
|
+
readonly reason: string;
|
|
6808
|
+
};
|
|
6809
|
+
} | {
|
|
6810
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
6811
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
6812
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
6813
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
6814
|
+
readonly trace: {
|
|
6815
|
+
readonly span: {
|
|
6816
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6817
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6818
|
+
readonly sampled: boolean;
|
|
6819
|
+
readonly tracestate: string | null;
|
|
6820
|
+
};
|
|
6821
|
+
readonly links: readonly {
|
|
6822
|
+
readonly context: {
|
|
6823
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6824
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6825
|
+
readonly sampled: boolean;
|
|
6826
|
+
readonly tracestate: string | null;
|
|
6827
|
+
};
|
|
6828
|
+
readonly attributes: {
|
|
6829
|
+
readonly [x: string]: string | number | boolean;
|
|
6830
|
+
};
|
|
6831
|
+
}[];
|
|
6832
|
+
};
|
|
6833
|
+
readonly durability: "durable";
|
|
6834
|
+
readonly namespace: "effect-durable-agent";
|
|
6835
|
+
readonly type: "UserMessageSubmitted";
|
|
6836
|
+
readonly schemaVersion: number;
|
|
6837
|
+
readonly payload: {
|
|
6838
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
6839
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
6840
|
+
readonly disposition: "queue" | "steer";
|
|
6728
6841
|
readonly content: readonly [{
|
|
6729
6842
|
readonly type: "text";
|
|
6730
6843
|
readonly text: string;
|
|
@@ -6799,126 +6912,13 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
6799
6912
|
};
|
|
6800
6913
|
readonly durability: "durable";
|
|
6801
6914
|
readonly namespace: "effect-durable-agent";
|
|
6802
|
-
readonly type: "
|
|
6915
|
+
readonly type: "UserMessagePromoted";
|
|
6803
6916
|
readonly schemaVersion: number;
|
|
6804
6917
|
readonly payload: {
|
|
6918
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
6805
6919
|
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
6806
|
-
readonly
|
|
6807
|
-
readonly
|
|
6808
|
-
};
|
|
6809
|
-
} | {
|
|
6810
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
6811
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
6812
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
6813
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
6814
|
-
readonly trace: {
|
|
6815
|
-
readonly span: {
|
|
6816
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6817
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6818
|
-
readonly sampled: boolean;
|
|
6819
|
-
readonly tracestate: string | null;
|
|
6820
|
-
};
|
|
6821
|
-
readonly links: readonly {
|
|
6822
|
-
readonly context: {
|
|
6823
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6824
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6825
|
-
readonly sampled: boolean;
|
|
6826
|
-
readonly tracestate: string | null;
|
|
6827
|
-
};
|
|
6828
|
-
readonly attributes: {
|
|
6829
|
-
readonly [x: string]: string | number | boolean;
|
|
6830
|
-
};
|
|
6831
|
-
}[];
|
|
6832
|
-
};
|
|
6833
|
-
readonly durability: "durable";
|
|
6834
|
-
readonly namespace: "effect-durable-agent";
|
|
6835
|
-
readonly type: "UserMessageSubmitted";
|
|
6836
|
-
readonly schemaVersion: number;
|
|
6837
|
-
readonly payload: {
|
|
6838
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
6839
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
6840
|
-
readonly disposition: "queue" | "steer";
|
|
6841
|
-
readonly content: readonly [{
|
|
6842
|
-
readonly type: "text";
|
|
6843
|
-
readonly text: string;
|
|
6844
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
6845
|
-
readonly options: {
|
|
6846
|
-
readonly [x: string]: Schema.Json;
|
|
6847
|
-
};
|
|
6848
|
-
}, ...{
|
|
6849
|
-
readonly type: "text";
|
|
6850
|
-
readonly text: string;
|
|
6851
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
6852
|
-
readonly options: {
|
|
6853
|
-
readonly [x: string]: Schema.Json;
|
|
6854
|
-
};
|
|
6855
|
-
}[]] | readonly [{
|
|
6856
|
-
readonly type: "text";
|
|
6857
|
-
readonly text: string;
|
|
6858
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
6859
|
-
readonly options: {
|
|
6860
|
-
readonly [x: string]: Schema.Json;
|
|
6861
|
-
};
|
|
6862
|
-
} | {
|
|
6863
|
-
readonly type: "file";
|
|
6864
|
-
readonly mediaType: string;
|
|
6865
|
-
readonly fileName?: string | undefined;
|
|
6866
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
6867
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
6868
|
-
readonly options: {
|
|
6869
|
-
readonly [x: string]: Schema.Json;
|
|
6870
|
-
};
|
|
6871
|
-
}, ...({
|
|
6872
|
-
readonly type: "text";
|
|
6873
|
-
readonly text: string;
|
|
6874
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
6875
|
-
readonly options: {
|
|
6876
|
-
readonly [x: string]: Schema.Json;
|
|
6877
|
-
};
|
|
6878
|
-
} | {
|
|
6879
|
-
readonly type: "file";
|
|
6880
|
-
readonly mediaType: string;
|
|
6881
|
-
readonly fileName?: string | undefined;
|
|
6882
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
6883
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
6884
|
-
readonly options: {
|
|
6885
|
-
readonly [x: string]: Schema.Json;
|
|
6886
|
-
};
|
|
6887
|
-
})[]];
|
|
6888
|
-
};
|
|
6889
|
-
} | {
|
|
6890
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
6891
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
6892
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
6893
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
6894
|
-
readonly trace: {
|
|
6895
|
-
readonly span: {
|
|
6896
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6897
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6898
|
-
readonly sampled: boolean;
|
|
6899
|
-
readonly tracestate: string | null;
|
|
6900
|
-
};
|
|
6901
|
-
readonly links: readonly {
|
|
6902
|
-
readonly context: {
|
|
6903
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
6904
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
6905
|
-
readonly sampled: boolean;
|
|
6906
|
-
readonly tracestate: string | null;
|
|
6907
|
-
};
|
|
6908
|
-
readonly attributes: {
|
|
6909
|
-
readonly [x: string]: string | number | boolean;
|
|
6910
|
-
};
|
|
6911
|
-
}[];
|
|
6912
|
-
};
|
|
6913
|
-
readonly durability: "durable";
|
|
6914
|
-
readonly namespace: "effect-durable-agent";
|
|
6915
|
-
readonly type: "UserMessagePromoted";
|
|
6916
|
-
readonly schemaVersion: number;
|
|
6917
|
-
readonly payload: {
|
|
6918
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
6919
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
6920
|
-
readonly from: "queue";
|
|
6921
|
-
readonly to: "steer";
|
|
6920
|
+
readonly from: "queue";
|
|
6921
|
+
readonly to: "steer";
|
|
6922
6922
|
};
|
|
6923
6923
|
} | {
|
|
6924
6924
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -8664,12 +8664,10 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
8664
8664
|
};
|
|
8665
8665
|
readonly durability: "durable";
|
|
8666
8666
|
readonly namespace: "effect-durable-agent";
|
|
8667
|
-
readonly type: "
|
|
8667
|
+
readonly type: "CommandCompleted";
|
|
8668
8668
|
readonly schemaVersion: number;
|
|
8669
8669
|
readonly payload: {
|
|
8670
|
-
readonly
|
|
8671
|
-
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
8672
|
-
readonly attemptId: string & import("effect/Brand").Brand<"InferenceId">;
|
|
8670
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
8673
8671
|
};
|
|
8674
8672
|
} | {
|
|
8675
8673
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -8697,23 +8695,15 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
8697
8695
|
};
|
|
8698
8696
|
readonly durability: "durable";
|
|
8699
8697
|
readonly namespace: "effect-durable-agent";
|
|
8700
|
-
readonly type: "
|
|
8698
|
+
readonly type: "CommandFailed";
|
|
8701
8699
|
readonly schemaVersion: number;
|
|
8702
8700
|
readonly payload: {
|
|
8703
|
-
readonly
|
|
8704
|
-
readonly
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
readonly cachedInputTokens?: number | undefined;
|
|
8710
|
-
readonly cacheWriteInputTokens?: number | undefined;
|
|
8711
|
-
readonly outputTokens?: number | undefined;
|
|
8712
|
-
readonly textTokens?: number | undefined;
|
|
8713
|
-
readonly reasoningTokens?: number | undefined;
|
|
8714
|
-
} | undefined;
|
|
8715
|
-
readonly responseMetadata?: unknown;
|
|
8716
|
-
readonly finishMetadata?: unknown;
|
|
8701
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
8702
|
+
readonly error: {
|
|
8703
|
+
readonly message: string;
|
|
8704
|
+
readonly code?: string | undefined;
|
|
8705
|
+
readonly details?: unknown;
|
|
8706
|
+
};
|
|
8717
8707
|
};
|
|
8718
8708
|
} | {
|
|
8719
8709
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -8741,118 +8731,11 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
8741
8731
|
};
|
|
8742
8732
|
readonly durability: "durable";
|
|
8743
8733
|
readonly namespace: "effect-durable-agent";
|
|
8744
|
-
readonly type: "
|
|
8734
|
+
readonly type: "CommandCancelled";
|
|
8745
8735
|
readonly schemaVersion: number;
|
|
8746
8736
|
readonly payload: {
|
|
8747
|
-
readonly
|
|
8748
|
-
readonly
|
|
8749
|
-
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
8750
|
-
readonly attemptId: string & import("effect/Brand").Brand<"InferenceId">;
|
|
8751
|
-
readonly promptParts: readonly [{
|
|
8752
|
-
readonly type: "text";
|
|
8753
|
-
readonly text: string;
|
|
8754
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8755
|
-
readonly options: {
|
|
8756
|
-
readonly [x: string]: Schema.Json;
|
|
8757
|
-
};
|
|
8758
|
-
} | {
|
|
8759
|
-
readonly type: "file";
|
|
8760
|
-
readonly mediaType: string;
|
|
8761
|
-
readonly fileName?: string | undefined;
|
|
8762
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
8763
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8764
|
-
readonly options: {
|
|
8765
|
-
readonly [x: string]: Schema.Json;
|
|
8766
|
-
};
|
|
8767
|
-
} | {
|
|
8768
|
-
readonly type: "reasoning";
|
|
8769
|
-
readonly text: string;
|
|
8770
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8771
|
-
readonly options: {
|
|
8772
|
-
readonly [x: string]: Schema.Json;
|
|
8773
|
-
};
|
|
8774
|
-
} | {
|
|
8775
|
-
readonly type: "tool-call";
|
|
8776
|
-
readonly id: string;
|
|
8777
|
-
readonly name: string;
|
|
8778
|
-
readonly params: unknown;
|
|
8779
|
-
readonly providerExecuted: boolean;
|
|
8780
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8781
|
-
readonly options: {
|
|
8782
|
-
readonly [x: string]: Schema.Json;
|
|
8783
|
-
};
|
|
8784
|
-
} | {
|
|
8785
|
-
readonly type: "tool-result";
|
|
8786
|
-
readonly id: string;
|
|
8787
|
-
readonly name: string;
|
|
8788
|
-
readonly isFailure: boolean;
|
|
8789
|
-
readonly result: unknown;
|
|
8790
|
-
readonly providerExecuted: boolean;
|
|
8791
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8792
|
-
readonly options: {
|
|
8793
|
-
readonly [x: string]: Schema.Json;
|
|
8794
|
-
};
|
|
8795
|
-
} | {
|
|
8796
|
-
readonly type: "tool-approval-request";
|
|
8797
|
-
readonly approvalId: string;
|
|
8798
|
-
readonly toolCallId: string;
|
|
8799
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8800
|
-
readonly options: {
|
|
8801
|
-
readonly [x: string]: Schema.Json;
|
|
8802
|
-
};
|
|
8803
|
-
}, ...({
|
|
8804
|
-
readonly type: "text";
|
|
8805
|
-
readonly text: string;
|
|
8806
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8807
|
-
readonly options: {
|
|
8808
|
-
readonly [x: string]: Schema.Json;
|
|
8809
|
-
};
|
|
8810
|
-
} | {
|
|
8811
|
-
readonly type: "file";
|
|
8812
|
-
readonly mediaType: string;
|
|
8813
|
-
readonly fileName?: string | undefined;
|
|
8814
|
-
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
8815
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8816
|
-
readonly options: {
|
|
8817
|
-
readonly [x: string]: Schema.Json;
|
|
8818
|
-
};
|
|
8819
|
-
} | {
|
|
8820
|
-
readonly type: "reasoning";
|
|
8821
|
-
readonly text: string;
|
|
8822
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8823
|
-
readonly options: {
|
|
8824
|
-
readonly [x: string]: Schema.Json;
|
|
8825
|
-
};
|
|
8826
|
-
} | {
|
|
8827
|
-
readonly type: "tool-call";
|
|
8828
|
-
readonly id: string;
|
|
8829
|
-
readonly name: string;
|
|
8830
|
-
readonly params: unknown;
|
|
8831
|
-
readonly providerExecuted: boolean;
|
|
8832
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8833
|
-
readonly options: {
|
|
8834
|
-
readonly [x: string]: Schema.Json;
|
|
8835
|
-
};
|
|
8836
|
-
} | {
|
|
8837
|
-
readonly type: "tool-result";
|
|
8838
|
-
readonly id: string;
|
|
8839
|
-
readonly name: string;
|
|
8840
|
-
readonly isFailure: boolean;
|
|
8841
|
-
readonly result: unknown;
|
|
8842
|
-
readonly providerExecuted: boolean;
|
|
8843
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8844
|
-
readonly options: {
|
|
8845
|
-
readonly [x: string]: Schema.Json;
|
|
8846
|
-
};
|
|
8847
|
-
} | {
|
|
8848
|
-
readonly type: "tool-approval-request";
|
|
8849
|
-
readonly approvalId: string;
|
|
8850
|
-
readonly toolCallId: string;
|
|
8851
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8852
|
-
readonly options: {
|
|
8853
|
-
readonly [x: string]: Schema.Json;
|
|
8854
|
-
};
|
|
8855
|
-
})[]];
|
|
8737
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
8738
|
+
readonly reason: string;
|
|
8856
8739
|
};
|
|
8857
8740
|
} | {
|
|
8858
8741
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -8880,24 +8763,12 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
8880
8763
|
};
|
|
8881
8764
|
readonly durability: "durable";
|
|
8882
8765
|
readonly namespace: "effect-durable-agent";
|
|
8883
|
-
readonly type: "
|
|
8766
|
+
readonly type: "TurnAttemptStarted";
|
|
8884
8767
|
readonly schemaVersion: number;
|
|
8885
8768
|
readonly payload: {
|
|
8886
8769
|
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
8887
8770
|
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
8888
8771
|
readonly attemptId: string & import("effect/Brand").Brand<"InferenceId">;
|
|
8889
|
-
readonly toolCallId: string & import("effect/Brand").Brand<"ToolCallId">;
|
|
8890
|
-
readonly promptPart: {
|
|
8891
|
-
readonly type: "tool-call";
|
|
8892
|
-
readonly params: unknown;
|
|
8893
|
-
readonly providerExecuted: boolean;
|
|
8894
|
-
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8895
|
-
readonly options: {
|
|
8896
|
-
readonly [x: string]: Schema.Json;
|
|
8897
|
-
};
|
|
8898
|
-
readonly id: string & import("effect/Brand").Brand<"ProviderPartId">;
|
|
8899
|
-
readonly name: string;
|
|
8900
|
-
};
|
|
8901
8772
|
};
|
|
8902
8773
|
} | {
|
|
8903
8774
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -8925,14 +8796,23 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
8925
8796
|
};
|
|
8926
8797
|
readonly durability: "durable";
|
|
8927
8798
|
readonly namespace: "effect-durable-agent";
|
|
8928
|
-
readonly type: "
|
|
8799
|
+
readonly type: "TurnAttemptCompleted";
|
|
8929
8800
|
readonly schemaVersion: number;
|
|
8930
8801
|
readonly payload: {
|
|
8931
|
-
readonly
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8802
|
+
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
8803
|
+
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
8804
|
+
readonly attemptId: string & import("effect/Brand").Brand<"InferenceId">;
|
|
8805
|
+
readonly finishReason?: string | undefined;
|
|
8806
|
+
readonly usage?: {
|
|
8807
|
+
readonly inputTokens?: number | undefined;
|
|
8808
|
+
readonly cachedInputTokens?: number | undefined;
|
|
8809
|
+
readonly cacheWriteInputTokens?: number | undefined;
|
|
8810
|
+
readonly outputTokens?: number | undefined;
|
|
8811
|
+
readonly textTokens?: number | undefined;
|
|
8812
|
+
readonly reasoningTokens?: number | undefined;
|
|
8813
|
+
} | undefined;
|
|
8814
|
+
readonly responseMetadata?: unknown;
|
|
8815
|
+
readonly finishMetadata?: unknown;
|
|
8936
8816
|
};
|
|
8937
8817
|
} | {
|
|
8938
8818
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -8960,19 +8840,118 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
8960
8840
|
};
|
|
8961
8841
|
readonly durability: "durable";
|
|
8962
8842
|
readonly namespace: "effect-durable-agent";
|
|
8963
|
-
readonly type: "
|
|
8843
|
+
readonly type: "AssistantMessageCommitted";
|
|
8964
8844
|
readonly schemaVersion: number;
|
|
8965
8845
|
readonly payload: {
|
|
8966
|
-
readonly
|
|
8967
|
-
readonly
|
|
8968
|
-
|
|
8969
|
-
|
|
8846
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
8847
|
+
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
8848
|
+
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
8849
|
+
readonly attemptId: string & import("effect/Brand").Brand<"InferenceId">;
|
|
8850
|
+
readonly promptParts: readonly [{
|
|
8851
|
+
readonly type: "text";
|
|
8852
|
+
readonly text: string;
|
|
8853
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8854
|
+
readonly options: {
|
|
8855
|
+
readonly [x: string]: Schema.Json;
|
|
8856
|
+
};
|
|
8970
8857
|
} | {
|
|
8971
|
-
readonly
|
|
8972
|
-
readonly
|
|
8973
|
-
readonly
|
|
8974
|
-
readonly
|
|
8975
|
-
|
|
8858
|
+
readonly type: "file";
|
|
8859
|
+
readonly mediaType: string;
|
|
8860
|
+
readonly fileName?: string | undefined;
|
|
8861
|
+
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
8862
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8863
|
+
readonly options: {
|
|
8864
|
+
readonly [x: string]: Schema.Json;
|
|
8865
|
+
};
|
|
8866
|
+
} | {
|
|
8867
|
+
readonly type: "reasoning";
|
|
8868
|
+
readonly text: string;
|
|
8869
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8870
|
+
readonly options: {
|
|
8871
|
+
readonly [x: string]: Schema.Json;
|
|
8872
|
+
};
|
|
8873
|
+
} | {
|
|
8874
|
+
readonly type: "tool-call";
|
|
8875
|
+
readonly id: string;
|
|
8876
|
+
readonly name: string;
|
|
8877
|
+
readonly params: unknown;
|
|
8878
|
+
readonly providerExecuted: boolean;
|
|
8879
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8880
|
+
readonly options: {
|
|
8881
|
+
readonly [x: string]: Schema.Json;
|
|
8882
|
+
};
|
|
8883
|
+
} | {
|
|
8884
|
+
readonly type: "tool-result";
|
|
8885
|
+
readonly id: string;
|
|
8886
|
+
readonly name: string;
|
|
8887
|
+
readonly isFailure: boolean;
|
|
8888
|
+
readonly result: unknown;
|
|
8889
|
+
readonly providerExecuted: boolean;
|
|
8890
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8891
|
+
readonly options: {
|
|
8892
|
+
readonly [x: string]: Schema.Json;
|
|
8893
|
+
};
|
|
8894
|
+
} | {
|
|
8895
|
+
readonly type: "tool-approval-request";
|
|
8896
|
+
readonly approvalId: string;
|
|
8897
|
+
readonly toolCallId: string;
|
|
8898
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8899
|
+
readonly options: {
|
|
8900
|
+
readonly [x: string]: Schema.Json;
|
|
8901
|
+
};
|
|
8902
|
+
}, ...({
|
|
8903
|
+
readonly type: "text";
|
|
8904
|
+
readonly text: string;
|
|
8905
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8906
|
+
readonly options: {
|
|
8907
|
+
readonly [x: string]: Schema.Json;
|
|
8908
|
+
};
|
|
8909
|
+
} | {
|
|
8910
|
+
readonly type: "file";
|
|
8911
|
+
readonly mediaType: string;
|
|
8912
|
+
readonly fileName?: string | undefined;
|
|
8913
|
+
readonly data: string | URL | Uint8Array<ArrayBufferLike>;
|
|
8914
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8915
|
+
readonly options: {
|
|
8916
|
+
readonly [x: string]: Schema.Json;
|
|
8917
|
+
};
|
|
8918
|
+
} | {
|
|
8919
|
+
readonly type: "reasoning";
|
|
8920
|
+
readonly text: string;
|
|
8921
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8922
|
+
readonly options: {
|
|
8923
|
+
readonly [x: string]: Schema.Json;
|
|
8924
|
+
};
|
|
8925
|
+
} | {
|
|
8926
|
+
readonly type: "tool-call";
|
|
8927
|
+
readonly id: string;
|
|
8928
|
+
readonly name: string;
|
|
8929
|
+
readonly params: unknown;
|
|
8930
|
+
readonly providerExecuted: boolean;
|
|
8931
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8932
|
+
readonly options: {
|
|
8933
|
+
readonly [x: string]: Schema.Json;
|
|
8934
|
+
};
|
|
8935
|
+
} | {
|
|
8936
|
+
readonly type: "tool-result";
|
|
8937
|
+
readonly id: string;
|
|
8938
|
+
readonly name: string;
|
|
8939
|
+
readonly isFailure: boolean;
|
|
8940
|
+
readonly result: unknown;
|
|
8941
|
+
readonly providerExecuted: boolean;
|
|
8942
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8943
|
+
readonly options: {
|
|
8944
|
+
readonly [x: string]: Schema.Json;
|
|
8945
|
+
};
|
|
8946
|
+
} | {
|
|
8947
|
+
readonly type: "tool-approval-request";
|
|
8948
|
+
readonly approvalId: string;
|
|
8949
|
+
readonly toolCallId: string;
|
|
8950
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8951
|
+
readonly options: {
|
|
8952
|
+
readonly [x: string]: Schema.Json;
|
|
8953
|
+
};
|
|
8954
|
+
})[]];
|
|
8976
8955
|
};
|
|
8977
8956
|
} | {
|
|
8978
8957
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -9000,10 +8979,24 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
9000
8979
|
};
|
|
9001
8980
|
readonly durability: "durable";
|
|
9002
8981
|
readonly namespace: "effect-durable-agent";
|
|
9003
|
-
readonly type: "
|
|
8982
|
+
readonly type: "ToolCallCreated";
|
|
9004
8983
|
readonly schemaVersion: number;
|
|
9005
8984
|
readonly payload: {
|
|
9006
|
-
readonly
|
|
8985
|
+
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
8986
|
+
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
8987
|
+
readonly attemptId: string & import("effect/Brand").Brand<"InferenceId">;
|
|
8988
|
+
readonly toolCallId: string & import("effect/Brand").Brand<"ToolCallId">;
|
|
8989
|
+
readonly promptPart: {
|
|
8990
|
+
readonly type: "tool-call";
|
|
8991
|
+
readonly params: unknown;
|
|
8992
|
+
readonly providerExecuted: boolean;
|
|
8993
|
+
readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
|
|
8994
|
+
readonly options: {
|
|
8995
|
+
readonly [x: string]: Schema.Json;
|
|
8996
|
+
};
|
|
8997
|
+
readonly id: string & import("effect/Brand").Brand<"ProviderPartId">;
|
|
8998
|
+
readonly name: string;
|
|
8999
|
+
};
|
|
9007
9000
|
};
|
|
9008
9001
|
} | {
|
|
9009
9002
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -9031,11 +9024,14 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
9031
9024
|
};
|
|
9032
9025
|
readonly durability: "durable";
|
|
9033
9026
|
readonly namespace: "effect-durable-agent";
|
|
9034
|
-
readonly type: "
|
|
9027
|
+
readonly type: "SessionConfigured";
|
|
9035
9028
|
readonly schemaVersion: number;
|
|
9036
9029
|
readonly payload: {
|
|
9037
|
-
readonly
|
|
9038
|
-
|
|
9030
|
+
readonly modelSelection: {
|
|
9031
|
+
readonly provider: string;
|
|
9032
|
+
readonly modelId: string;
|
|
9033
|
+
readonly settings?: unknown;
|
|
9034
|
+
};
|
|
9039
9035
|
};
|
|
9040
9036
|
} | {
|
|
9041
9037
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -9063,11 +9059,19 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
9063
9059
|
};
|
|
9064
9060
|
readonly durability: "durable";
|
|
9065
9061
|
readonly namespace: "effect-durable-agent";
|
|
9066
|
-
readonly type: "
|
|
9062
|
+
readonly type: "RunSchedulingRequested";
|
|
9067
9063
|
readonly schemaVersion: number;
|
|
9068
9064
|
readonly payload: {
|
|
9069
9065
|
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
9070
|
-
readonly
|
|
9066
|
+
readonly work: {
|
|
9067
|
+
readonly _tag: "Command";
|
|
9068
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
9069
|
+
} | {
|
|
9070
|
+
readonly _tag: "Recovery";
|
|
9071
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
9072
|
+
readonly interruptedRunId: string & import("effect/Brand").Brand<"RunId">;
|
|
9073
|
+
readonly inputMessageIds: readonly (string & import("effect/Brand").Brand<"MessageId">)[];
|
|
9074
|
+
};
|
|
9071
9075
|
};
|
|
9072
9076
|
} | {
|
|
9073
9077
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -9095,10 +9099,10 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
9095
9099
|
};
|
|
9096
9100
|
readonly durability: "durable";
|
|
9097
9101
|
readonly namespace: "effect-durable-agent";
|
|
9098
|
-
readonly type: "
|
|
9102
|
+
readonly type: "RunSchedulingDelivered";
|
|
9099
9103
|
readonly schemaVersion: number;
|
|
9100
9104
|
readonly payload: {
|
|
9101
|
-
readonly
|
|
9105
|
+
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
9102
9106
|
};
|
|
9103
9107
|
} | {
|
|
9104
9108
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -9126,10 +9130,11 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
9126
9130
|
};
|
|
9127
9131
|
readonly durability: "durable";
|
|
9128
9132
|
readonly namespace: "effect-durable-agent";
|
|
9129
|
-
readonly type: "
|
|
9133
|
+
readonly type: "RunSchedulingInvalidated";
|
|
9130
9134
|
readonly schemaVersion: number;
|
|
9131
9135
|
readonly payload: {
|
|
9132
|
-
readonly
|
|
9136
|
+
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
9137
|
+
readonly reason: "ineligible" | "interrupted" | "message-cancelled" | "stopped";
|
|
9133
9138
|
};
|
|
9134
9139
|
} | {
|
|
9135
9140
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -9157,10 +9162,11 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
9157
9162
|
};
|
|
9158
9163
|
readonly durability: "durable";
|
|
9159
9164
|
readonly namespace: "effect-durable-agent";
|
|
9160
|
-
readonly type: "
|
|
9165
|
+
readonly type: "RunSchedulingGranted";
|
|
9161
9166
|
readonly schemaVersion: number;
|
|
9162
9167
|
readonly payload: {
|
|
9163
|
-
readonly
|
|
9168
|
+
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
9169
|
+
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
9164
9170
|
};
|
|
9165
9171
|
} | {
|
|
9166
9172
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -9188,15 +9194,10 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
9188
9194
|
};
|
|
9189
9195
|
readonly durability: "durable";
|
|
9190
9196
|
readonly namespace: "effect-durable-agent";
|
|
9191
|
-
readonly type: "
|
|
9197
|
+
readonly type: "CommandAdmitted";
|
|
9192
9198
|
readonly schemaVersion: number;
|
|
9193
9199
|
readonly payload: {
|
|
9194
|
-
readonly
|
|
9195
|
-
readonly error: {
|
|
9196
|
-
readonly message: string;
|
|
9197
|
-
readonly code?: string | undefined;
|
|
9198
|
-
readonly details?: unknown;
|
|
9199
|
-
};
|
|
9200
|
+
readonly command: CancelPendingMessageCommand | PromotePendingMessageCommand | ResumePendingMessagesCommand | StopTurnCommand | SubmitMessageCommand;
|
|
9200
9201
|
};
|
|
9201
9202
|
} | {
|
|
9202
9203
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -9224,11 +9225,10 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
9224
9225
|
};
|
|
9225
9226
|
readonly durability: "durable";
|
|
9226
9227
|
readonly namespace: "effect-durable-agent";
|
|
9227
|
-
readonly type: "
|
|
9228
|
+
readonly type: "CommandStarted";
|
|
9228
9229
|
readonly schemaVersion: number;
|
|
9229
9230
|
readonly payload: {
|
|
9230
9231
|
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
9231
|
-
readonly reason: string;
|
|
9232
9232
|
};
|
|
9233
9233
|
} | {
|
|
9234
9234
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -11289,6 +11289,105 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
11289
11289
|
readonly responseParts: Schema.$Array<Schema.Any>;
|
|
11290
11290
|
}>, Schema.TaggedStruct<"InferenceRunFailed", {
|
|
11291
11291
|
readonly committed: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
|
|
11292
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
11293
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
11294
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
11295
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
11296
|
+
readonly trace: {
|
|
11297
|
+
readonly span: {
|
|
11298
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
11299
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
11300
|
+
readonly sampled: boolean;
|
|
11301
|
+
readonly tracestate: string | null;
|
|
11302
|
+
};
|
|
11303
|
+
readonly links: readonly {
|
|
11304
|
+
readonly context: {
|
|
11305
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
11306
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
11307
|
+
readonly sampled: boolean;
|
|
11308
|
+
readonly tracestate: string | null;
|
|
11309
|
+
};
|
|
11310
|
+
readonly attributes: {
|
|
11311
|
+
readonly [x: string]: string | number | boolean;
|
|
11312
|
+
};
|
|
11313
|
+
}[];
|
|
11314
|
+
};
|
|
11315
|
+
readonly durability: "durable";
|
|
11316
|
+
readonly namespace: "effect-durable-agent";
|
|
11317
|
+
readonly type: "CommandCompleted";
|
|
11318
|
+
readonly schemaVersion: number;
|
|
11319
|
+
readonly payload: {
|
|
11320
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
11321
|
+
};
|
|
11322
|
+
} | {
|
|
11323
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
11324
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
11325
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
11326
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
11327
|
+
readonly trace: {
|
|
11328
|
+
readonly span: {
|
|
11329
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
11330
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
11331
|
+
readonly sampled: boolean;
|
|
11332
|
+
readonly tracestate: string | null;
|
|
11333
|
+
};
|
|
11334
|
+
readonly links: readonly {
|
|
11335
|
+
readonly context: {
|
|
11336
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
11337
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
11338
|
+
readonly sampled: boolean;
|
|
11339
|
+
readonly tracestate: string | null;
|
|
11340
|
+
};
|
|
11341
|
+
readonly attributes: {
|
|
11342
|
+
readonly [x: string]: string | number | boolean;
|
|
11343
|
+
};
|
|
11344
|
+
}[];
|
|
11345
|
+
};
|
|
11346
|
+
readonly durability: "durable";
|
|
11347
|
+
readonly namespace: "effect-durable-agent";
|
|
11348
|
+
readonly type: "CommandFailed";
|
|
11349
|
+
readonly schemaVersion: number;
|
|
11350
|
+
readonly payload: {
|
|
11351
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
11352
|
+
readonly error: {
|
|
11353
|
+
readonly message: string;
|
|
11354
|
+
readonly code?: string | undefined;
|
|
11355
|
+
readonly details?: unknown;
|
|
11356
|
+
};
|
|
11357
|
+
};
|
|
11358
|
+
} | {
|
|
11359
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
11360
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
11361
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
11362
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
11363
|
+
readonly trace: {
|
|
11364
|
+
readonly span: {
|
|
11365
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
11366
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
11367
|
+
readonly sampled: boolean;
|
|
11368
|
+
readonly tracestate: string | null;
|
|
11369
|
+
};
|
|
11370
|
+
readonly links: readonly {
|
|
11371
|
+
readonly context: {
|
|
11372
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
11373
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
11374
|
+
readonly sampled: boolean;
|
|
11375
|
+
readonly tracestate: string | null;
|
|
11376
|
+
};
|
|
11377
|
+
readonly attributes: {
|
|
11378
|
+
readonly [x: string]: string | number | boolean;
|
|
11379
|
+
};
|
|
11380
|
+
}[];
|
|
11381
|
+
};
|
|
11382
|
+
readonly durability: "durable";
|
|
11383
|
+
readonly namespace: "effect-durable-agent";
|
|
11384
|
+
readonly type: "CommandCancelled";
|
|
11385
|
+
readonly schemaVersion: number;
|
|
11386
|
+
readonly payload: {
|
|
11387
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
11388
|
+
readonly reason: string;
|
|
11389
|
+
};
|
|
11390
|
+
} | {
|
|
11292
11391
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
11293
11392
|
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
11294
11393
|
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
@@ -11781,105 +11880,6 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
11781
11880
|
readonly payload: {
|
|
11782
11881
|
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
11783
11882
|
};
|
|
11784
|
-
} | {
|
|
11785
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
11786
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
11787
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
11788
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
11789
|
-
readonly trace: {
|
|
11790
|
-
readonly span: {
|
|
11791
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
11792
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
11793
|
-
readonly sampled: boolean;
|
|
11794
|
-
readonly tracestate: string | null;
|
|
11795
|
-
};
|
|
11796
|
-
readonly links: readonly {
|
|
11797
|
-
readonly context: {
|
|
11798
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
11799
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
11800
|
-
readonly sampled: boolean;
|
|
11801
|
-
readonly tracestate: string | null;
|
|
11802
|
-
};
|
|
11803
|
-
readonly attributes: {
|
|
11804
|
-
readonly [x: string]: string | number | boolean;
|
|
11805
|
-
};
|
|
11806
|
-
}[];
|
|
11807
|
-
};
|
|
11808
|
-
readonly durability: "durable";
|
|
11809
|
-
readonly namespace: "effect-durable-agent";
|
|
11810
|
-
readonly type: "CommandCompleted";
|
|
11811
|
-
readonly schemaVersion: number;
|
|
11812
|
-
readonly payload: {
|
|
11813
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
11814
|
-
};
|
|
11815
|
-
} | {
|
|
11816
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
11817
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
11818
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
11819
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
11820
|
-
readonly trace: {
|
|
11821
|
-
readonly span: {
|
|
11822
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
11823
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
11824
|
-
readonly sampled: boolean;
|
|
11825
|
-
readonly tracestate: string | null;
|
|
11826
|
-
};
|
|
11827
|
-
readonly links: readonly {
|
|
11828
|
-
readonly context: {
|
|
11829
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
11830
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
11831
|
-
readonly sampled: boolean;
|
|
11832
|
-
readonly tracestate: string | null;
|
|
11833
|
-
};
|
|
11834
|
-
readonly attributes: {
|
|
11835
|
-
readonly [x: string]: string | number | boolean;
|
|
11836
|
-
};
|
|
11837
|
-
}[];
|
|
11838
|
-
};
|
|
11839
|
-
readonly durability: "durable";
|
|
11840
|
-
readonly namespace: "effect-durable-agent";
|
|
11841
|
-
readonly type: "CommandFailed";
|
|
11842
|
-
readonly schemaVersion: number;
|
|
11843
|
-
readonly payload: {
|
|
11844
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
11845
|
-
readonly error: {
|
|
11846
|
-
readonly message: string;
|
|
11847
|
-
readonly code?: string | undefined;
|
|
11848
|
-
readonly details?: unknown;
|
|
11849
|
-
};
|
|
11850
|
-
};
|
|
11851
|
-
} | {
|
|
11852
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
11853
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
11854
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
11855
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
11856
|
-
readonly trace: {
|
|
11857
|
-
readonly span: {
|
|
11858
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
11859
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
11860
|
-
readonly sampled: boolean;
|
|
11861
|
-
readonly tracestate: string | null;
|
|
11862
|
-
};
|
|
11863
|
-
readonly links: readonly {
|
|
11864
|
-
readonly context: {
|
|
11865
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
11866
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
11867
|
-
readonly sampled: boolean;
|
|
11868
|
-
readonly tracestate: string | null;
|
|
11869
|
-
};
|
|
11870
|
-
readonly attributes: {
|
|
11871
|
-
readonly [x: string]: string | number | boolean;
|
|
11872
|
-
};
|
|
11873
|
-
}[];
|
|
11874
|
-
};
|
|
11875
|
-
readonly durability: "durable";
|
|
11876
|
-
readonly namespace: "effect-durable-agent";
|
|
11877
|
-
readonly type: "CommandCancelled";
|
|
11878
|
-
readonly schemaVersion: number;
|
|
11879
|
-
readonly payload: {
|
|
11880
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
11881
|
-
readonly reason: string;
|
|
11882
|
-
};
|
|
11883
11883
|
} | {
|
|
11884
11884
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
11885
11885
|
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
@@ -45693,215 +45693,8 @@ declare class SessionState extends SessionState_base {
|
|
|
45693
45693
|
static readonly Live: Layer.Layer<SessionState, EDASessionStoreError, CompactionRunner | EDAKeepAlive | EDAPromptProjector | EDAReducerRegistry | EDASessionStore | EDASinkRegistry | EventFactory | IdGenerator | LiveEventBus | RunScheduler | RunSchedulingWakeup | SessionContext | TurnRunner>;
|
|
45694
45694
|
}
|
|
45695
45695
|
//#endregion
|
|
45696
|
-
//#region src/domain/message-transcript.d.ts
|
|
45697
|
-
/** Durable user/assistant message records suitable for a session transcript. */
|
|
45698
|
-
type DurableTranscriptMessage = Extract<MessageRecord, {
|
|
45699
|
-
readonly _tag: "User" | "Assistant" | "AssistantPartial";
|
|
45700
|
-
}> | (Extract<MessageRecord, {
|
|
45701
|
-
readonly _tag: "Steering";
|
|
45702
|
-
}> & {
|
|
45703
|
-
readonly consumedSeq: NonNullable<Extract<MessageRecord, {
|
|
45704
|
-
readonly _tag: "Steering";
|
|
45705
|
-
}>["consumedSeq"]>;
|
|
45706
|
-
});
|
|
45707
|
-
/** Derive the durable user/assistant transcript in committed sequence order. */
|
|
45708
|
-
declare const durableMessageTranscript: (state: Pick<ReducedState, "messages">) => ReadonlyArray<DurableTranscriptMessage>;
|
|
45709
|
-
/**
|
|
45710
|
-
* Prompt state as of `throughSeq`: transcript messages that entered the prompt at or before that
|
|
45711
|
-
* sequence. Compaction uses it to rebuild the exact prompt of an earlier request.
|
|
45712
|
-
*/
|
|
45713
|
-
declare const projectionStateThrough: <S extends Pick<ReducedState, "messages">>(state: S, throughSeq: number) => S;
|
|
45714
|
-
type PromptProjectionState = Pick<ReducedState, "messages"> & Partial<Pick<ReducedState, "toolCalls">>;
|
|
45715
|
-
/** Convert all durable transcript messages and exact tool-result parts into provider prompt history. */
|
|
45716
|
-
declare const durableTranscriptPrompt: (state: PromptProjectionState) => Prompt.Prompt;
|
|
45717
|
-
/** Convert the current compacted context into provider prompt history. */
|
|
45718
|
-
declare const contextProjectionPrompt: (state: PromptProjectionState, context: ContextProjection | undefined) => Prompt.Prompt;
|
|
45719
|
-
/** Build a provider prompt with extra user content selected by the scheduler but not yet folded. */
|
|
45720
|
-
declare const durableTranscriptPromptWithUserContent: (state: PromptProjectionState, content: UserMessageContent) => Prompt.Prompt;
|
|
45721
|
-
/** Build a compacted provider prompt with extra user content selected by the scheduler. */
|
|
45722
|
-
declare const contextProjectionPromptWithUserContent: (state: PromptProjectionState, context: ContextProjection | undefined, content: UserMessageContent) => Prompt.Prompt;
|
|
45723
|
-
/** Build a compacted provider prompt with multiple scheduler-selected user messages. */
|
|
45724
|
-
declare const contextProjectionPromptWithUserContents: (state: PromptProjectionState, context: ContextProjection | undefined, contents: ReadonlyArray<UserMessageContent>) => Prompt.Prompt;
|
|
45725
|
-
//#endregion
|
|
45726
45696
|
//#region src/services/session-query.d.ts
|
|
45727
|
-
/**
|
|
45728
|
-
declare const DurableTranscriptMessages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
45729
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
45730
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
45731
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
45732
|
-
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
45733
|
-
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
45734
|
-
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45735
|
-
readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45736
|
-
readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
45737
|
-
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
45738
|
-
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45739
|
-
readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45740
|
-
readonly _tag: Schema.Literal<"User">;
|
|
45741
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
45742
|
-
readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
45743
|
-
readonly type: Schema.Literal<"text">;
|
|
45744
|
-
readonly text: Schema.String;
|
|
45745
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45746
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45747
|
-
}>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
45748
|
-
readonly type: Schema.Literal<"text">;
|
|
45749
|
-
readonly text: Schema.String;
|
|
45750
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45751
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45752
|
-
}>, Schema.Struct<{
|
|
45753
|
-
readonly type: Schema.Literal<"file">;
|
|
45754
|
-
readonly mediaType: Schema.String;
|
|
45755
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
45756
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
45757
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45758
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45759
|
-
}>]>>]>>;
|
|
45760
|
-
readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
45761
|
-
readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
45762
|
-
}>, Schema.Struct<{
|
|
45763
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
45764
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
45765
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
45766
|
-
readonly _tag: Schema.Literal<"Assistant">;
|
|
45767
|
-
readonly content: Schema.Struct<{
|
|
45768
|
-
readonly text: Schema.String;
|
|
45769
|
-
readonly reasoning: Schema.optionalKey<Schema.String>;
|
|
45770
|
-
}>;
|
|
45771
|
-
readonly imported: Schema.optionalKey<Schema.Literal<true>>;
|
|
45772
|
-
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
45773
|
-
readonly promptParts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.toType<Schema.Struct<{
|
|
45774
|
-
readonly type: Schema.Literal<"text">;
|
|
45775
|
-
readonly text: Schema.String;
|
|
45776
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45777
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45778
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45779
|
-
readonly type: Schema.Literal<"file">;
|
|
45780
|
-
readonly mediaType: Schema.String;
|
|
45781
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
45782
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
45783
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45784
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45785
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45786
|
-
readonly type: Schema.Literal<"reasoning">;
|
|
45787
|
-
readonly text: Schema.String;
|
|
45788
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45789
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45790
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45791
|
-
readonly type: Schema.Literal<"tool-call">;
|
|
45792
|
-
readonly id: Schema.String;
|
|
45793
|
-
readonly name: Schema.String;
|
|
45794
|
-
readonly params: Schema.Unknown;
|
|
45795
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
45796
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45797
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45798
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45799
|
-
readonly type: Schema.Literal<"tool-result">;
|
|
45800
|
-
readonly id: Schema.String;
|
|
45801
|
-
readonly name: Schema.String;
|
|
45802
|
-
readonly isFailure: Schema.Boolean;
|
|
45803
|
-
readonly result: Schema.Unknown;
|
|
45804
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
45805
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45806
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45807
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45808
|
-
readonly type: Schema.Literal<"tool-approval-request">;
|
|
45809
|
-
readonly approvalId: Schema.String;
|
|
45810
|
-
readonly toolCallId: Schema.String;
|
|
45811
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45812
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45813
|
-
}>>]>>>;
|
|
45814
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
45815
|
-
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
45816
|
-
}>, Schema.Struct<{
|
|
45817
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
45818
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
45819
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
45820
|
-
readonly _tag: Schema.Literal<"AssistantPartial">;
|
|
45821
|
-
readonly content: Schema.Struct<{
|
|
45822
|
-
readonly text: Schema.String;
|
|
45823
|
-
readonly reasoning: Schema.optionalKey<Schema.String>;
|
|
45824
|
-
}>;
|
|
45825
|
-
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
45826
|
-
readonly promptParts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.toType<Schema.Struct<{
|
|
45827
|
-
readonly type: Schema.Literal<"text">;
|
|
45828
|
-
readonly text: Schema.String;
|
|
45829
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45830
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45831
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45832
|
-
readonly type: Schema.Literal<"file">;
|
|
45833
|
-
readonly mediaType: Schema.String;
|
|
45834
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
45835
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
45836
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45837
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45838
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45839
|
-
readonly type: Schema.Literal<"reasoning">;
|
|
45840
|
-
readonly text: Schema.String;
|
|
45841
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45842
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45843
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45844
|
-
readonly type: Schema.Literal<"tool-call">;
|
|
45845
|
-
readonly id: Schema.String;
|
|
45846
|
-
readonly name: Schema.String;
|
|
45847
|
-
readonly params: Schema.Unknown;
|
|
45848
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
45849
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45850
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45851
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45852
|
-
readonly type: Schema.Literal<"tool-result">;
|
|
45853
|
-
readonly id: Schema.String;
|
|
45854
|
-
readonly name: Schema.String;
|
|
45855
|
-
readonly isFailure: Schema.Boolean;
|
|
45856
|
-
readonly result: Schema.Unknown;
|
|
45857
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
45858
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45859
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45860
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45861
|
-
readonly type: Schema.Literal<"tool-approval-request">;
|
|
45862
|
-
readonly approvalId: Schema.String;
|
|
45863
|
-
readonly toolCallId: Schema.String;
|
|
45864
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45865
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45866
|
-
}>>]>>>;
|
|
45867
|
-
readonly reason: Schema.String;
|
|
45868
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
45869
|
-
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
45870
|
-
}>, Schema.Struct<{
|
|
45871
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
45872
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
45873
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
45874
|
-
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
45875
|
-
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
45876
|
-
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45877
|
-
readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
45878
|
-
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
45879
|
-
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45880
|
-
readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45881
|
-
readonly _tag: Schema.Literal<"Steering">;
|
|
45882
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
45883
|
-
readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
45884
|
-
readonly type: Schema.Literal<"text">;
|
|
45885
|
-
readonly text: Schema.String;
|
|
45886
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45887
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45888
|
-
}>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
45889
|
-
readonly type: Schema.Literal<"text">;
|
|
45890
|
-
readonly text: Schema.String;
|
|
45891
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45892
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45893
|
-
}>, Schema.Struct<{
|
|
45894
|
-
readonly type: Schema.Literal<"file">;
|
|
45895
|
-
readonly mediaType: Schema.String;
|
|
45896
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
45897
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
45898
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45899
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45900
|
-
}>]>>]>>;
|
|
45901
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
45902
|
-
readonly consumedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
45903
|
-
}>]>>;
|
|
45904
|
-
/** Authoritative live snapshot for one EDA session plus its derived durable transcript. */
|
|
45697
|
+
/** Authoritative live snapshot for one EDA session: reduced state plus app reducer states. */
|
|
45905
45698
|
declare const EDASessionSnapshot: Schema.Struct<{
|
|
45906
45699
|
readonly state: Schema.Struct<{
|
|
45907
45700
|
readonly runSchedulingRequest: Schema.optionalKey<Schema.Struct<{
|
|
@@ -46568,192 +46361,14 @@ declare const EDASessionSnapshot: Schema.Struct<{
|
|
|
46568
46361
|
}>;
|
|
46569
46362
|
}>;
|
|
46570
46363
|
readonly reducerStates: Schema.$ReadonlyMap<Schema.String, Schema.Unknown>;
|
|
46571
|
-
readonly messages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
46572
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
46573
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
46574
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
46575
|
-
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
46576
|
-
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
46577
|
-
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46578
|
-
readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46579
|
-
readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
46580
|
-
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
46581
|
-
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46582
|
-
readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46583
|
-
readonly _tag: Schema.Literal<"User">;
|
|
46584
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
46585
|
-
readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
46586
|
-
readonly type: Schema.Literal<"text">;
|
|
46587
|
-
readonly text: Schema.String;
|
|
46588
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46589
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46590
|
-
}>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
46591
|
-
readonly type: Schema.Literal<"text">;
|
|
46592
|
-
readonly text: Schema.String;
|
|
46593
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46594
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46595
|
-
}>, Schema.Struct<{
|
|
46596
|
-
readonly type: Schema.Literal<"file">;
|
|
46597
|
-
readonly mediaType: Schema.String;
|
|
46598
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
46599
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
46600
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46601
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46602
|
-
}>]>>]>>;
|
|
46603
|
-
readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
46604
|
-
readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
46605
|
-
}>, Schema.Struct<{
|
|
46606
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
46607
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
46608
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
46609
|
-
readonly _tag: Schema.Literal<"Assistant">;
|
|
46610
|
-
readonly content: Schema.Struct<{
|
|
46611
|
-
readonly text: Schema.String;
|
|
46612
|
-
readonly reasoning: Schema.optionalKey<Schema.String>;
|
|
46613
|
-
}>;
|
|
46614
|
-
readonly imported: Schema.optionalKey<Schema.Literal<true>>;
|
|
46615
|
-
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
46616
|
-
readonly promptParts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.toType<Schema.Struct<{
|
|
46617
|
-
readonly type: Schema.Literal<"text">;
|
|
46618
|
-
readonly text: Schema.String;
|
|
46619
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46620
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46621
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46622
|
-
readonly type: Schema.Literal<"file">;
|
|
46623
|
-
readonly mediaType: Schema.String;
|
|
46624
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
46625
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
46626
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46627
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46628
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46629
|
-
readonly type: Schema.Literal<"reasoning">;
|
|
46630
|
-
readonly text: Schema.String;
|
|
46631
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46632
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46633
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46634
|
-
readonly type: Schema.Literal<"tool-call">;
|
|
46635
|
-
readonly id: Schema.String;
|
|
46636
|
-
readonly name: Schema.String;
|
|
46637
|
-
readonly params: Schema.Unknown;
|
|
46638
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
46639
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46640
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46641
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46642
|
-
readonly type: Schema.Literal<"tool-result">;
|
|
46643
|
-
readonly id: Schema.String;
|
|
46644
|
-
readonly name: Schema.String;
|
|
46645
|
-
readonly isFailure: Schema.Boolean;
|
|
46646
|
-
readonly result: Schema.Unknown;
|
|
46647
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
46648
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46649
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46650
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46651
|
-
readonly type: Schema.Literal<"tool-approval-request">;
|
|
46652
|
-
readonly approvalId: Schema.String;
|
|
46653
|
-
readonly toolCallId: Schema.String;
|
|
46654
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46655
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46656
|
-
}>>]>>>;
|
|
46657
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
46658
|
-
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
46659
|
-
}>, Schema.Struct<{
|
|
46660
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
46661
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
46662
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
46663
|
-
readonly _tag: Schema.Literal<"AssistantPartial">;
|
|
46664
|
-
readonly content: Schema.Struct<{
|
|
46665
|
-
readonly text: Schema.String;
|
|
46666
|
-
readonly reasoning: Schema.optionalKey<Schema.String>;
|
|
46667
|
-
}>;
|
|
46668
|
-
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
46669
|
-
readonly promptParts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.toType<Schema.Struct<{
|
|
46670
|
-
readonly type: Schema.Literal<"text">;
|
|
46671
|
-
readonly text: Schema.String;
|
|
46672
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46673
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46674
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46675
|
-
readonly type: Schema.Literal<"file">;
|
|
46676
|
-
readonly mediaType: Schema.String;
|
|
46677
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
46678
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
46679
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46680
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46681
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46682
|
-
readonly type: Schema.Literal<"reasoning">;
|
|
46683
|
-
readonly text: Schema.String;
|
|
46684
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46685
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46686
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46687
|
-
readonly type: Schema.Literal<"tool-call">;
|
|
46688
|
-
readonly id: Schema.String;
|
|
46689
|
-
readonly name: Schema.String;
|
|
46690
|
-
readonly params: Schema.Unknown;
|
|
46691
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
46692
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46693
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46694
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46695
|
-
readonly type: Schema.Literal<"tool-result">;
|
|
46696
|
-
readonly id: Schema.String;
|
|
46697
|
-
readonly name: Schema.String;
|
|
46698
|
-
readonly isFailure: Schema.Boolean;
|
|
46699
|
-
readonly result: Schema.Unknown;
|
|
46700
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
46701
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46702
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46703
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46704
|
-
readonly type: Schema.Literal<"tool-approval-request">;
|
|
46705
|
-
readonly approvalId: Schema.String;
|
|
46706
|
-
readonly toolCallId: Schema.String;
|
|
46707
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46708
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46709
|
-
}>>]>>>;
|
|
46710
|
-
readonly reason: Schema.String;
|
|
46711
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
46712
|
-
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
46713
|
-
}>, Schema.Struct<{
|
|
46714
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
46715
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
46716
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
46717
|
-
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
46718
|
-
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
46719
|
-
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46720
|
-
readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
46721
|
-
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
46722
|
-
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46723
|
-
readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46724
|
-
readonly _tag: Schema.Literal<"Steering">;
|
|
46725
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
46726
|
-
readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
46727
|
-
readonly type: Schema.Literal<"text">;
|
|
46728
|
-
readonly text: Schema.String;
|
|
46729
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46730
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46731
|
-
}>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
46732
|
-
readonly type: Schema.Literal<"text">;
|
|
46733
|
-
readonly text: Schema.String;
|
|
46734
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46735
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46736
|
-
}>, Schema.Struct<{
|
|
46737
|
-
readonly type: Schema.Literal<"file">;
|
|
46738
|
-
readonly mediaType: Schema.String;
|
|
46739
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
46740
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
46741
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46742
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46743
|
-
}>]>>]>>;
|
|
46744
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
46745
|
-
readonly consumedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
46746
|
-
}>]>>;
|
|
46747
46364
|
}>;
|
|
46748
46365
|
type EDASessionSnapshot = typeof EDASessionSnapshot.Type;
|
|
46749
46366
|
/** Read-only query facade over authoritative live state and reconnect-safe event streams. */
|
|
46750
46367
|
interface EDASessionQueryShape {
|
|
46751
46368
|
/** Reconcile one request against committed facts, including after reducer history pruning. */
|
|
46752
46369
|
readonly runRequestOutcome: (requestId: RunRequestId) => Effect.Effect<RunRequestOutcome, EDASessionStoreError>;
|
|
46753
|
-
/** Read the authoritative live state and
|
|
46370
|
+
/** Read the authoritative live state and app reducer states. */
|
|
46754
46371
|
readonly snapshot: () => Effect.Effect<EDASessionSnapshot, EDASessionStoreError>;
|
|
46755
|
-
/** Read durable user/assistant messages in committed sequence order from the live snapshot. */
|
|
46756
|
-
readonly messages: () => Effect.Effect<ReadonlyArray<DurableTranscriptMessage>, EDASessionStoreError>;
|
|
46757
46372
|
/** Backfill durable events after `afterSeq`, then follow live durable/ephemeral events. */
|
|
46758
46373
|
readonly eventsAfter: (afterSeq: SequenceNumber) => Effect.Effect<Stream.Stream<PositionedEvent, EDASessionStoreError>, EDASessionStoreError, Scope.Scope>;
|
|
46759
46374
|
/** Read one bounded committed durable slice after `afterSeq` plus the committed head. */
|
|
@@ -46912,8 +46527,6 @@ interface EDARuntimeShape {
|
|
|
46912
46527
|
readonly submitAndBlock: (command: EDACommand) => Effect.Effect<CommittedCommandTerminalEvent, EDARuntimeError>;
|
|
46913
46528
|
/** Read the authoritative live session snapshot. */
|
|
46914
46529
|
readonly snapshot: EDASessionQueryShape["snapshot"];
|
|
46915
|
-
/** Read durable user/assistant messages in committed order. */
|
|
46916
|
-
readonly messages: EDASessionQueryShape["messages"];
|
|
46917
46530
|
/** Backfill durable events after a committed sequence, then follow live events. */
|
|
46918
46531
|
readonly eventsAfter: EDASessionQueryShape["eventsAfter"];
|
|
46919
46532
|
/** Read one bounded page of committed durable events plus the committed head. */
|
|
@@ -48165,5 +47778,5 @@ declare const activeTurnIdentityForCommand: (state: ReducedState, commandId: Com
|
|
|
48165
47778
|
/** Classify unfinished durable lifecycles that recovery may need to repair. */
|
|
48166
47779
|
declare const classifyRecoverableWork: (state: ReducedState) => RecoverableWork;
|
|
48167
47780
|
//#endregion
|
|
48168
|
-
export {
|
|
48169
|
-
//# sourceMappingURL=reduced-state-
|
|
47781
|
+
export { EDASessionQueryShape as $, EDASinkRawDurableBatch as $t, TurnTerminal as A, EDAPromptProjector as An, RunRequestOutcome as At, pendingCommands as B, runSchedulingInputMessageIds as Bt, RunRecord as C, defaultCompactionThresholdTokens as Cn, RunScheduler as Ct, ToolDecision as D, EDANativeCompaction as Dn, DeferredRunResolution as Dt, ToolCallRecord as E, SessionContext as En, RunSchedulingDeliveryError as Et, encodeReducedStateCheckpoint as F, isEDACacheBreakpoint as Fn, RunSchedulingRequestRecord as Ft, EDACommandTerminalEvent as G, EDAProjectedSink as Gt, reduceCommittedEvents as H, EDADurableSinkDefinition as Ht, foldReducedState as I, nativeCompactionSummaryMessage as In, RunSchedulingWork as It, EDARuntimeError as J, EDASink as Jt, EDARuntime as K, EDARawDurableSinkDefinition as Kt, frameworkReducedStateReducerName as L, canGrantRun as Lt, activeTurnIdentityForCommand as M, EDA_PROMPT_OPTIONS_KEY as Mn, RunSchedulingCancellationPlan as Mt, classifyRecoverableWork as N, buildEDAPrompt as Nn, RunSchedulingInput as Nt, ToolTerminal as O, EDAProjectedPromptContext as On, LocalRunResolution as Ot, decodeReducedStateCheckpoint as P, getNativeCompaction as Pn, RunSchedulingRequest as Pt, EDASessionQuery as Q, EDASinkInterests as Qt, frameworkReducedStateReducerSchemaVersion as R, planRunSchedulingCancellation as Rt, ReducedStateCheckpointToolTerminal as S, defaultCompactionSummaryInstructions as Sn, ToolExecutor as St, StopRequestRecord as T, EventFactory as Tn, RunSchedulingDelivery as Tt, reducedStateCheckpointEventSeqs as U, EDAEphemeralSinkDefinition as Ut, pendingStopCommand as V, waitingRunControl as Vt, CommittedCommandTerminalEvent as W, EDAProjectedDurableSinkDefinition as Wt, EDARuntimeSubmit as X, EDASinkContext as Xt, EDARuntimeShape as Y, EDASinkCheckpoint as Yt, EDASessionEventPage as Z, EDASinkDurableBatch as Zt, ReducedStateCheckpointCommandRecord as _, LanguageModelSummaryCompactionExecutorOptions as _n, SessionStateShape as _t, CompactionRecord as a, CompactionError as an, SessionCommandCompleted as at, ReducedStateCheckpointToolCallRecord as b, defaultCompactionMinSummarizableTokens as bn, InferenceRunner as bt, InferenceRecord as c, CompactionExecutorShape as cn, SessionCommandResult as ct, LifecycleTiming as d, CompactionPolicy as dn, SessionForkedCommand as dt, EDASinkRegistry as en, EDASessionSnapshot as et, MessageRecord as f, CompactionPolicyInput as fn, SessionNoRunnableCommand as ft, ReducedState as g, CompactionRunnerShape as gn, SessionStateError as gt, RecoveryContinuationRecord as h, CompactionRunnerInput as hn, SessionState as ht, CommandTerminal as i, ApproximateTokenThresholdCompactionPolicyOptions as in, SessionCommandCancelled as it, activeCommand as j, EDAPromptProjectorShape as jn, RunResolution as jt, TurnRecord as k, EDAPromptProjectionInput as kn, RunGrantResult as kt, InferenceTerminal as l, CompactionOutput as ln, SessionDrainProcessed as lt, RecoverableWork as m, CompactionRunner as mn, SessionRunInput as mt, ActiveTurnIdentity as n, EDASinkRunnerStartInput as nn, SessionCommandAdmissionConflict as nt, CompactionTerminal as o, CompactionExecutor as on, SessionCommandFailed as ot, PendingCommand as p, CompactionPolicyShape as pn, SessionNoRunnableReason as pt, EDARuntimeConfig as q, EDARawSink as qt, CommandRecord as r, LiveEventBus as rn, SessionCommandAdmissionError as rt, ContextRecord as s, CompactionExecutorInput as sn, SessionCommandOutcome as st, ActiveCommandEvidence as t, EDASinkRegistryShape as tn, EDASubmittable as tt, LifecycleFailure as u, CompactionPlan as un, SessionDrainResult as ut, ReducedStateCheckpointMessageRecord as v, PromptPrefixSummaryCompactionExecutorOptions as vn, SessionStateSnapshotData as vt, RunTerminal as w, promptPrefixSummaryCompactionExecutor as wn, RunSchedulerShape as wt, ReducedStateCheckpointToolDecision as x, defaultCompactionRetainTailTokens as xn, InferenceRunnerStreamPart as xt, ReducedStateCheckpointPayload as y, defaultCompactionCharsPerToken as yn, TurnRunner as yt, initialReducedState as z, planWaitingRunInterruption as zt };
|
|
47782
|
+
//# sourceMappingURL=reduced-state-C0CxfyUD.d.ts.map
|