effect-durable-agent 0.1.0-alpha.14 → 0.1.0-alpha.16
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/{command-queues-CSEl1yrH.d.ts → command-queues-CtOtDZm3.d.ts} +2 -2
- package/dist/{compaction-DYAlYxx5.d.ts → compaction-BfzzyWko.d.ts} +4 -4
- package/dist/{compaction-0k8zCJgB.js → compaction-CCdfxYkq.js} +2 -2
- package/dist/{compaction-0k8zCJgB.js.map → compaction-CCdfxYkq.js.map} +1 -1
- package/dist/domain/command-queues.d.ts +1 -1
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/reduced-state-schema.js +1 -1
- package/dist/domain/reduced-state.d.ts +1 -1
- package/dist/domain/reduced-state.js +1 -1
- package/dist/domain/run-scheduling.d.ts +1 -1
- package/dist/{durable-BPHVFVvV.js → durable-D_tjjz4B.js} +85 -4
- package/dist/{durable-BPHVFVvV.js.map → durable-D_tjjz4B.js.map} +1 -1
- package/dist/{durable-DeLCAvbw.d.ts → durable-RSiz3YBK.d.ts} +766 -5
- package/dist/{event-factory-EL4szNWm.d.ts → event-factory-CClLXzI9.d.ts} +3 -3
- package/dist/{event-factory-QuC_UvyP.js → event-factory-CX0_laE5.js} +2 -2
- package/dist/{event-factory-QuC_UvyP.js.map → event-factory-CX0_laE5.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{message-transcript-CmCHC1Pg.d.ts → message-transcript-CEp0gCSQ.d.ts} +2 -2
- package/dist/{prompt-projector-_Zxe7dlE.d.ts → prompt-projector-Dh1-qvCH.d.ts} +2 -2
- package/dist/{reduced-state-Bz68V2H8.js → reduced-state-BAKvToAh.js} +3 -3
- package/dist/reduced-state-BAKvToAh.js.map +1 -0
- package/dist/{run-scheduler-BBqZ0Ate.d.ts → run-scheduler-CpPjFQD7.d.ts} +2 -2
- package/dist/{runtime-CH6Ll_Rv.d.ts → runtime-CX1M7jgX.d.ts} +4 -4
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/compaction.js +1 -1
- package/dist/services/prompt-projector.d.ts +1 -1
- package/dist/services/run-scheduler.d.ts +2 -2
- package/dist/services/runtime-layer.d.ts +6 -6
- package/dist/services/runtime-layer.js +4 -4
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +2 -2
- package/dist/services/session-query.d.ts +1 -1
- package/dist/services/session-query.js +2 -2
- package/dist/services/session-state.d.ts +1 -1
- package/dist/services/session-state.js +1 -1
- package/dist/services/session-store.js +1 -1
- package/dist/services/sink-registry.d.ts +2 -2
- package/dist/services/sink-registry.js +1 -1
- package/dist/{session-query-CMeJog1g.d.ts → session-query-BHB4OxR_.d.ts} +5 -5
- package/dist/{session-state-DtPwg_EP.js → session-state-CWKwjwdx.js} +6 -6
- package/dist/{session-state-DtPwg_EP.js.map → session-state-CWKwjwdx.js.map} +1 -1
- package/dist/{session-state-D4g0kV_K.d.ts → session-state-dE07Zzcr.d.ts} +12 -12
- package/dist/{sink-registry-CAtl5OWV.d.ts → sink-registry-CEBjrMd_.d.ts} +44 -15
- package/dist/{sink-registry-B7cG7gxK.js → sink-registry-DUkifMag.js} +43 -31
- package/dist/sink-registry-DUkifMag.js.map +1 -0
- package/dist/testkit/layers.d.ts +8 -8
- package/dist/testkit/layers.js +4 -4
- package/dist/types/events/durable.d.ts +2 -2
- package/dist/types/events/durable.js +2 -2
- package/dist/types/events.d.ts +2 -2
- package/dist/types/events.js +2 -2
- package/dist/websocket.d.ts +187 -1
- package/dist/websocket.js +1 -1
- package/package.json +1 -1
- package/dist/reduced-state-Bz68V2H8.js.map +0 -1
- package/dist/sink-registry-B7cG7gxK.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as DurableEventEnvelope } from "./envelope-DkZyMIgp.js";
|
|
1
2
|
import { c as StopTurnCommand, l as SubmitMessageCommand, o as PromotePendingMessageCommand, s as ResumePendingMessagesCommand, t as CancelPendingMessageCommand } from "./commands-p8venTWs.js";
|
|
2
3
|
import * as Effect from "effect/Effect";
|
|
3
4
|
import * as Schema from "effect/Schema";
|
|
@@ -4783,8 +4784,582 @@ declare const BaseStateEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
4783
4784
|
}>>;
|
|
4784
4785
|
}>]>;
|
|
4785
4786
|
type BaseStateEvent = typeof BaseStateEvent.Type;
|
|
4786
|
-
/**
|
|
4787
|
-
declare const
|
|
4787
|
+
/** Retained pre-inference lifecycle facts. Attempt identities remain unchanged in storage and on wire. */
|
|
4788
|
+
declare const LegacyTurnAttemptStartedEvent: Schema.Struct<{
|
|
4789
|
+
readonly namespace: Schema.Literal<string>;
|
|
4790
|
+
readonly type: Schema.Literal<"TurnAttemptStarted">;
|
|
4791
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
4792
|
+
readonly payload: Schema.Struct<{
|
|
4793
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
4794
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
4795
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
4796
|
+
}>;
|
|
4797
|
+
readonly durability: Schema.Literal<"durable">;
|
|
4798
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
4799
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
4800
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
4801
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
4802
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
4803
|
+
readonly span: Schema.Struct<{
|
|
4804
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4805
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4806
|
+
readonly sampled: Schema.Boolean;
|
|
4807
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4808
|
+
}>;
|
|
4809
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
4810
|
+
readonly context: Schema.Struct<{
|
|
4811
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4812
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4813
|
+
readonly sampled: Schema.Boolean;
|
|
4814
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4815
|
+
}>;
|
|
4816
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
4817
|
+
}>>;
|
|
4818
|
+
}>>;
|
|
4819
|
+
}>;
|
|
4820
|
+
/** A successful historical provider request; multiple attempts can belong to one historical turn. */
|
|
4821
|
+
declare const LegacyTurnAttemptCompletedEvent: Schema.Struct<{
|
|
4822
|
+
readonly namespace: Schema.Literal<string>;
|
|
4823
|
+
readonly type: Schema.Literal<"TurnAttemptCompleted">;
|
|
4824
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
4825
|
+
readonly payload: Schema.Struct<{
|
|
4826
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
4827
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
4828
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
4829
|
+
readonly finishReason: Schema.optionalKey<Schema.String>;
|
|
4830
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
4831
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
4832
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4833
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
4834
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
4835
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
4836
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
4837
|
+
}>>;
|
|
4838
|
+
readonly responseMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
4839
|
+
readonly finishMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
4840
|
+
}>;
|
|
4841
|
+
readonly durability: Schema.Literal<"durable">;
|
|
4842
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
4843
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
4844
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
4845
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
4846
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
4847
|
+
readonly span: Schema.Struct<{
|
|
4848
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4849
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4850
|
+
readonly sampled: Schema.Boolean;
|
|
4851
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4852
|
+
}>;
|
|
4853
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
4854
|
+
readonly context: Schema.Struct<{
|
|
4855
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4856
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4857
|
+
readonly sampled: Schema.Boolean;
|
|
4858
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4859
|
+
}>;
|
|
4860
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
4861
|
+
}>>;
|
|
4862
|
+
}>>;
|
|
4863
|
+
}>;
|
|
4864
|
+
/** Historical assistant content links to the original attempt rather than a renamed event. */
|
|
4865
|
+
declare const LegacyAssistantMessageCommittedEvent: Schema.Struct<{
|
|
4866
|
+
readonly namespace: Schema.Literal<string>;
|
|
4867
|
+
readonly type: Schema.Literal<"AssistantMessageCommitted">;
|
|
4868
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
4869
|
+
readonly payload: Schema.Struct<{
|
|
4870
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
4871
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
4872
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
4873
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
4874
|
+
readonly promptParts: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4875
|
+
readonly type: Schema.Literal<"text">;
|
|
4876
|
+
readonly text: Schema.String;
|
|
4877
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
4878
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
4879
|
+
}>, Schema.Struct<{
|
|
4880
|
+
readonly type: Schema.Literal<"file">;
|
|
4881
|
+
readonly mediaType: Schema.String;
|
|
4882
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
4883
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
4884
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
4885
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
4886
|
+
}>, Schema.Struct<{
|
|
4887
|
+
readonly type: Schema.Literal<"reasoning">;
|
|
4888
|
+
readonly text: Schema.String;
|
|
4889
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
4890
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
4891
|
+
}>, Schema.Struct<{
|
|
4892
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
4893
|
+
readonly id: Schema.String;
|
|
4894
|
+
readonly name: Schema.String;
|
|
4895
|
+
readonly params: Schema.Unknown;
|
|
4896
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
4897
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
4898
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
4899
|
+
}>, Schema.Struct<{
|
|
4900
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
4901
|
+
readonly id: Schema.String;
|
|
4902
|
+
readonly name: Schema.String;
|
|
4903
|
+
readonly isFailure: Schema.Boolean;
|
|
4904
|
+
readonly result: Schema.Unknown;
|
|
4905
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
4906
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
4907
|
+
}>, Schema.Struct<{
|
|
4908
|
+
readonly type: Schema.Literal<"tool-approval-request">;
|
|
4909
|
+
readonly approvalId: Schema.String;
|
|
4910
|
+
readonly toolCallId: Schema.String;
|
|
4911
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
4912
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
4913
|
+
}>]>>;
|
|
4914
|
+
}>;
|
|
4915
|
+
readonly durability: Schema.Literal<"durable">;
|
|
4916
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
4917
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
4918
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
4919
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
4920
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
4921
|
+
readonly span: Schema.Struct<{
|
|
4922
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4923
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4924
|
+
readonly sampled: Schema.Boolean;
|
|
4925
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4926
|
+
}>;
|
|
4927
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
4928
|
+
readonly context: Schema.Struct<{
|
|
4929
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4930
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4931
|
+
readonly sampled: Schema.Boolean;
|
|
4932
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4933
|
+
}>;
|
|
4934
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
4935
|
+
}>>;
|
|
4936
|
+
}>>;
|
|
4937
|
+
}>;
|
|
4938
|
+
/** Historical tool decisions retain their attempt and turn references during replay. */
|
|
4939
|
+
declare const LegacyToolCallCreatedEvent: Schema.Struct<{
|
|
4940
|
+
readonly namespace: Schema.Literal<string>;
|
|
4941
|
+
readonly type: Schema.Literal<"ToolCallCreated">;
|
|
4942
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
4943
|
+
readonly payload: Schema.Struct<{
|
|
4944
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
4945
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
4946
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
4947
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
4948
|
+
readonly promptPart: Schema.Struct<{
|
|
4949
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
4950
|
+
readonly name: Schema.NonEmptyString;
|
|
4951
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
4952
|
+
readonly params: Schema.Unknown;
|
|
4953
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
4954
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
4955
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
4956
|
+
}>;
|
|
4957
|
+
}>;
|
|
4958
|
+
readonly durability: Schema.Literal<"durable">;
|
|
4959
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
4960
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
4961
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
4962
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
4963
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
4964
|
+
readonly span: Schema.Struct<{
|
|
4965
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4966
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4967
|
+
readonly sampled: Schema.Boolean;
|
|
4968
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4969
|
+
}>;
|
|
4970
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
4971
|
+
readonly context: Schema.Struct<{
|
|
4972
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4973
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
4974
|
+
readonly sampled: Schema.Boolean;
|
|
4975
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
4976
|
+
}>;
|
|
4977
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
4978
|
+
}>>;
|
|
4979
|
+
}>>;
|
|
4980
|
+
}>;
|
|
4981
|
+
/** Explicitly supported historical shapes; unknown event types and versions remain errors. */
|
|
4982
|
+
declare const LegacyAttemptEvent: Schema.Union<readonly [Schema.Struct<{
|
|
4983
|
+
readonly namespace: Schema.Literal<string>;
|
|
4984
|
+
readonly type: Schema.Literal<"TurnAttemptStarted">;
|
|
4985
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
4986
|
+
readonly payload: Schema.Struct<{
|
|
4987
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
4988
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
4989
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
4990
|
+
}>;
|
|
4991
|
+
readonly durability: Schema.Literal<"durable">;
|
|
4992
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
4993
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
4994
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
4995
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
4996
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
4997
|
+
readonly span: Schema.Struct<{
|
|
4998
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
4999
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5000
|
+
readonly sampled: Schema.Boolean;
|
|
5001
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5002
|
+
}>;
|
|
5003
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
5004
|
+
readonly context: Schema.Struct<{
|
|
5005
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5006
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5007
|
+
readonly sampled: Schema.Boolean;
|
|
5008
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5009
|
+
}>;
|
|
5010
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5011
|
+
}>>;
|
|
5012
|
+
}>>;
|
|
5013
|
+
}>, Schema.Struct<{
|
|
5014
|
+
readonly namespace: Schema.Literal<string>;
|
|
5015
|
+
readonly type: Schema.Literal<"TurnAttemptCompleted">;
|
|
5016
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
5017
|
+
readonly payload: Schema.Struct<{
|
|
5018
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
5019
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
5020
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
5021
|
+
readonly finishReason: Schema.optionalKey<Schema.String>;
|
|
5022
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
5023
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
5024
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
5025
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
5026
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
5027
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
5028
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
5029
|
+
}>>;
|
|
5030
|
+
readonly responseMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
5031
|
+
readonly finishMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
5032
|
+
}>;
|
|
5033
|
+
readonly durability: Schema.Literal<"durable">;
|
|
5034
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
5035
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
5036
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
5037
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
5038
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
5039
|
+
readonly span: Schema.Struct<{
|
|
5040
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5041
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5042
|
+
readonly sampled: Schema.Boolean;
|
|
5043
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5044
|
+
}>;
|
|
5045
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
5046
|
+
readonly context: Schema.Struct<{
|
|
5047
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5048
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5049
|
+
readonly sampled: Schema.Boolean;
|
|
5050
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5051
|
+
}>;
|
|
5052
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5053
|
+
}>>;
|
|
5054
|
+
}>>;
|
|
5055
|
+
}>, Schema.Struct<{
|
|
5056
|
+
readonly namespace: Schema.Literal<string>;
|
|
5057
|
+
readonly type: Schema.Literal<"AssistantMessageCommitted">;
|
|
5058
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
5059
|
+
readonly payload: Schema.Struct<{
|
|
5060
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
5061
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
5062
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
5063
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
5064
|
+
readonly promptParts: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
5065
|
+
readonly type: Schema.Literal<"text">;
|
|
5066
|
+
readonly text: Schema.String;
|
|
5067
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5068
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5069
|
+
}>, Schema.Struct<{
|
|
5070
|
+
readonly type: Schema.Literal<"file">;
|
|
5071
|
+
readonly mediaType: Schema.String;
|
|
5072
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
5073
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
5074
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5075
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5076
|
+
}>, Schema.Struct<{
|
|
5077
|
+
readonly type: Schema.Literal<"reasoning">;
|
|
5078
|
+
readonly text: Schema.String;
|
|
5079
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5080
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5081
|
+
}>, Schema.Struct<{
|
|
5082
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
5083
|
+
readonly id: Schema.String;
|
|
5084
|
+
readonly name: Schema.String;
|
|
5085
|
+
readonly params: Schema.Unknown;
|
|
5086
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
5087
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5088
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5089
|
+
}>, Schema.Struct<{
|
|
5090
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
5091
|
+
readonly id: Schema.String;
|
|
5092
|
+
readonly name: Schema.String;
|
|
5093
|
+
readonly isFailure: Schema.Boolean;
|
|
5094
|
+
readonly result: Schema.Unknown;
|
|
5095
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5096
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5097
|
+
}>, Schema.Struct<{
|
|
5098
|
+
readonly type: Schema.Literal<"tool-approval-request">;
|
|
5099
|
+
readonly approvalId: Schema.String;
|
|
5100
|
+
readonly toolCallId: Schema.String;
|
|
5101
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5102
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5103
|
+
}>]>>;
|
|
5104
|
+
}>;
|
|
5105
|
+
readonly durability: Schema.Literal<"durable">;
|
|
5106
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
5107
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
5108
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
5109
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
5110
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
5111
|
+
readonly span: Schema.Struct<{
|
|
5112
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5113
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5114
|
+
readonly sampled: Schema.Boolean;
|
|
5115
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5116
|
+
}>;
|
|
5117
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
5118
|
+
readonly context: Schema.Struct<{
|
|
5119
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5120
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5121
|
+
readonly sampled: Schema.Boolean;
|
|
5122
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5123
|
+
}>;
|
|
5124
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5125
|
+
}>>;
|
|
5126
|
+
}>>;
|
|
5127
|
+
}>, Schema.Struct<{
|
|
5128
|
+
readonly namespace: Schema.Literal<string>;
|
|
5129
|
+
readonly type: Schema.Literal<"ToolCallCreated">;
|
|
5130
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
5131
|
+
readonly payload: Schema.Struct<{
|
|
5132
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
5133
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
5134
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
5135
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
5136
|
+
readonly promptPart: Schema.Struct<{
|
|
5137
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
5138
|
+
readonly name: Schema.NonEmptyString;
|
|
5139
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
5140
|
+
readonly params: Schema.Unknown;
|
|
5141
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
5142
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5143
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5144
|
+
}>;
|
|
5145
|
+
}>;
|
|
5146
|
+
readonly durability: Schema.Literal<"durable">;
|
|
5147
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
5148
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
5149
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
5150
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
5151
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
5152
|
+
readonly span: Schema.Struct<{
|
|
5153
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5154
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5155
|
+
readonly sampled: Schema.Boolean;
|
|
5156
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5157
|
+
}>;
|
|
5158
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
5159
|
+
readonly context: Schema.Struct<{
|
|
5160
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5161
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5162
|
+
readonly sampled: Schema.Boolean;
|
|
5163
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5164
|
+
}>;
|
|
5165
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5166
|
+
}>>;
|
|
5167
|
+
}>>;
|
|
5168
|
+
}>]>;
|
|
5169
|
+
/**
|
|
5170
|
+
* Interprets retained attempt references solely for domain folding. It never changes the stored
|
|
5171
|
+
* envelope, stream position, or wire event. Historical turns retain all of their attempts;
|
|
5172
|
+
* this deliberately does not split turns or manufacture lifecycle events.
|
|
5173
|
+
*/
|
|
5174
|
+
declare const interpretLegacyAttemptForReduction: (event: DurableEventEnvelope) => DurableEventEnvelope;
|
|
5175
|
+
/** Built-in durable event union for framework-owned session facts, including retained historical schemas. */
|
|
5176
|
+
declare const EDADurableEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5177
|
+
readonly namespace: Schema.Literal<string>;
|
|
5178
|
+
readonly type: Schema.Literal<"TurnAttemptStarted">;
|
|
5179
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
5180
|
+
readonly payload: Schema.Struct<{
|
|
5181
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
5182
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
5183
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
5184
|
+
}>;
|
|
5185
|
+
readonly durability: Schema.Literal<"durable">;
|
|
5186
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
5187
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
5188
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
5189
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
5190
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
5191
|
+
readonly span: Schema.Struct<{
|
|
5192
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5193
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5194
|
+
readonly sampled: Schema.Boolean;
|
|
5195
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5196
|
+
}>;
|
|
5197
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
5198
|
+
readonly context: Schema.Struct<{
|
|
5199
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5200
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5201
|
+
readonly sampled: Schema.Boolean;
|
|
5202
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5203
|
+
}>;
|
|
5204
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5205
|
+
}>>;
|
|
5206
|
+
}>>;
|
|
5207
|
+
}>, Schema.Struct<{
|
|
5208
|
+
readonly namespace: Schema.Literal<string>;
|
|
5209
|
+
readonly type: Schema.Literal<"TurnAttemptCompleted">;
|
|
5210
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
5211
|
+
readonly payload: Schema.Struct<{
|
|
5212
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
5213
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
5214
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
5215
|
+
readonly finishReason: Schema.optionalKey<Schema.String>;
|
|
5216
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
5217
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
5218
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
5219
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
5220
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
5221
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
5222
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
5223
|
+
}>>;
|
|
5224
|
+
readonly responseMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
5225
|
+
readonly finishMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
5226
|
+
}>;
|
|
5227
|
+
readonly durability: Schema.Literal<"durable">;
|
|
5228
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
5229
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
5230
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
5231
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
5232
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
5233
|
+
readonly span: Schema.Struct<{
|
|
5234
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5235
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5236
|
+
readonly sampled: Schema.Boolean;
|
|
5237
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5238
|
+
}>;
|
|
5239
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
5240
|
+
readonly context: Schema.Struct<{
|
|
5241
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5242
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5243
|
+
readonly sampled: Schema.Boolean;
|
|
5244
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5245
|
+
}>;
|
|
5246
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5247
|
+
}>>;
|
|
5248
|
+
}>>;
|
|
5249
|
+
}>, Schema.Struct<{
|
|
5250
|
+
readonly namespace: Schema.Literal<string>;
|
|
5251
|
+
readonly type: Schema.Literal<"AssistantMessageCommitted">;
|
|
5252
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
5253
|
+
readonly payload: Schema.Struct<{
|
|
5254
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
5255
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
5256
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
5257
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
5258
|
+
readonly promptParts: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
5259
|
+
readonly type: Schema.Literal<"text">;
|
|
5260
|
+
readonly text: Schema.String;
|
|
5261
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5262
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5263
|
+
}>, Schema.Struct<{
|
|
5264
|
+
readonly type: Schema.Literal<"file">;
|
|
5265
|
+
readonly mediaType: Schema.String;
|
|
5266
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
5267
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
5268
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5269
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5270
|
+
}>, Schema.Struct<{
|
|
5271
|
+
readonly type: Schema.Literal<"reasoning">;
|
|
5272
|
+
readonly text: Schema.String;
|
|
5273
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5274
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5275
|
+
}>, Schema.Struct<{
|
|
5276
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
5277
|
+
readonly id: Schema.String;
|
|
5278
|
+
readonly name: Schema.String;
|
|
5279
|
+
readonly params: Schema.Unknown;
|
|
5280
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
5281
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5282
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5283
|
+
}>, Schema.Struct<{
|
|
5284
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
5285
|
+
readonly id: Schema.String;
|
|
5286
|
+
readonly name: Schema.String;
|
|
5287
|
+
readonly isFailure: Schema.Boolean;
|
|
5288
|
+
readonly result: Schema.Unknown;
|
|
5289
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5290
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5291
|
+
}>, Schema.Struct<{
|
|
5292
|
+
readonly type: Schema.Literal<"tool-approval-request">;
|
|
5293
|
+
readonly approvalId: Schema.String;
|
|
5294
|
+
readonly toolCallId: Schema.String;
|
|
5295
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5296
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5297
|
+
}>]>>;
|
|
5298
|
+
}>;
|
|
5299
|
+
readonly durability: Schema.Literal<"durable">;
|
|
5300
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
5301
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
5302
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
5303
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
5304
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
5305
|
+
readonly span: Schema.Struct<{
|
|
5306
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5307
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5308
|
+
readonly sampled: Schema.Boolean;
|
|
5309
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5310
|
+
}>;
|
|
5311
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
5312
|
+
readonly context: Schema.Struct<{
|
|
5313
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5314
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5315
|
+
readonly sampled: Schema.Boolean;
|
|
5316
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5317
|
+
}>;
|
|
5318
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5319
|
+
}>>;
|
|
5320
|
+
}>>;
|
|
5321
|
+
}>, Schema.Struct<{
|
|
5322
|
+
readonly namespace: Schema.Literal<string>;
|
|
5323
|
+
readonly type: Schema.Literal<"ToolCallCreated">;
|
|
5324
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
5325
|
+
readonly payload: Schema.Struct<{
|
|
5326
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
5327
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
5328
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
5329
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
5330
|
+
readonly promptPart: Schema.Struct<{
|
|
5331
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
5332
|
+
readonly name: Schema.NonEmptyString;
|
|
5333
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
5334
|
+
readonly params: Schema.Unknown;
|
|
5335
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
5336
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
5337
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
5338
|
+
}>;
|
|
5339
|
+
}>;
|
|
5340
|
+
readonly durability: Schema.Literal<"durable">;
|
|
5341
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
5342
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
5343
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
5344
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
5345
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
5346
|
+
readonly span: Schema.Struct<{
|
|
5347
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5348
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5349
|
+
readonly sampled: Schema.Boolean;
|
|
5350
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5351
|
+
}>;
|
|
5352
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
5353
|
+
readonly context: Schema.Struct<{
|
|
5354
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
5355
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
5356
|
+
readonly sampled: Schema.Boolean;
|
|
5357
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
5358
|
+
}>;
|
|
5359
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
5360
|
+
}>>;
|
|
5361
|
+
}>>;
|
|
5362
|
+
}>]>, Schema.Struct<{
|
|
4788
5363
|
readonly namespace: Schema.Literal<string>;
|
|
4789
5364
|
readonly type: Schema.Literal<"SessionConfigured">;
|
|
4790
5365
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -6676,7 +7251,193 @@ declare const EDADurableEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
6676
7251
|
}>]>]>;
|
|
6677
7252
|
type EDADurableEvent = typeof EDADurableEvent.Type;
|
|
6678
7253
|
/** Current V1 framework durable event schema. Future versions route beside this alias. */
|
|
6679
|
-
declare const EDADurableEventV1: Schema.Union<readonly [Schema.Struct<{
|
|
7254
|
+
declare const EDADurableEventV1: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7255
|
+
readonly namespace: Schema.Literal<string>;
|
|
7256
|
+
readonly type: Schema.Literal<"TurnAttemptStarted">;
|
|
7257
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
7258
|
+
readonly payload: Schema.Struct<{
|
|
7259
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
7260
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
7261
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
7262
|
+
}>;
|
|
7263
|
+
readonly durability: Schema.Literal<"durable">;
|
|
7264
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
7265
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
7266
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
7267
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
7268
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
7269
|
+
readonly span: Schema.Struct<{
|
|
7270
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
7271
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
7272
|
+
readonly sampled: Schema.Boolean;
|
|
7273
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
7274
|
+
}>;
|
|
7275
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
7276
|
+
readonly context: Schema.Struct<{
|
|
7277
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
7278
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
7279
|
+
readonly sampled: Schema.Boolean;
|
|
7280
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
7281
|
+
}>;
|
|
7282
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
7283
|
+
}>>;
|
|
7284
|
+
}>>;
|
|
7285
|
+
}>, Schema.Struct<{
|
|
7286
|
+
readonly namespace: Schema.Literal<string>;
|
|
7287
|
+
readonly type: Schema.Literal<"TurnAttemptCompleted">;
|
|
7288
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
7289
|
+
readonly payload: Schema.Struct<{
|
|
7290
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
7291
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
7292
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
7293
|
+
readonly finishReason: Schema.optionalKey<Schema.String>;
|
|
7294
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
7295
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
7296
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
7297
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
7298
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
7299
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
7300
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
7301
|
+
}>>;
|
|
7302
|
+
readonly responseMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
7303
|
+
readonly finishMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
7304
|
+
}>;
|
|
7305
|
+
readonly durability: Schema.Literal<"durable">;
|
|
7306
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
7307
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
7308
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
7309
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
7310
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
7311
|
+
readonly span: Schema.Struct<{
|
|
7312
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
7313
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
7314
|
+
readonly sampled: Schema.Boolean;
|
|
7315
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
7316
|
+
}>;
|
|
7317
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
7318
|
+
readonly context: Schema.Struct<{
|
|
7319
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
7320
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
7321
|
+
readonly sampled: Schema.Boolean;
|
|
7322
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
7323
|
+
}>;
|
|
7324
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
7325
|
+
}>>;
|
|
7326
|
+
}>>;
|
|
7327
|
+
}>, Schema.Struct<{
|
|
7328
|
+
readonly namespace: Schema.Literal<string>;
|
|
7329
|
+
readonly type: Schema.Literal<"AssistantMessageCommitted">;
|
|
7330
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
7331
|
+
readonly payload: Schema.Struct<{
|
|
7332
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
7333
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
7334
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
7335
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
7336
|
+
readonly promptParts: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
7337
|
+
readonly type: Schema.Literal<"text">;
|
|
7338
|
+
readonly text: Schema.String;
|
|
7339
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7340
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7341
|
+
}>, Schema.Struct<{
|
|
7342
|
+
readonly type: Schema.Literal<"file">;
|
|
7343
|
+
readonly mediaType: Schema.String;
|
|
7344
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
7345
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
7346
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7347
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7348
|
+
}>, Schema.Struct<{
|
|
7349
|
+
readonly type: Schema.Literal<"reasoning">;
|
|
7350
|
+
readonly text: Schema.String;
|
|
7351
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7352
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7353
|
+
}>, Schema.Struct<{
|
|
7354
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
7355
|
+
readonly id: Schema.String;
|
|
7356
|
+
readonly name: Schema.String;
|
|
7357
|
+
readonly params: Schema.Unknown;
|
|
7358
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
7359
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7360
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7361
|
+
}>, Schema.Struct<{
|
|
7362
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
7363
|
+
readonly id: Schema.String;
|
|
7364
|
+
readonly name: Schema.String;
|
|
7365
|
+
readonly isFailure: Schema.Boolean;
|
|
7366
|
+
readonly result: Schema.Unknown;
|
|
7367
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7368
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7369
|
+
}>, Schema.Struct<{
|
|
7370
|
+
readonly type: Schema.Literal<"tool-approval-request">;
|
|
7371
|
+
readonly approvalId: Schema.String;
|
|
7372
|
+
readonly toolCallId: Schema.String;
|
|
7373
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7374
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7375
|
+
}>]>>;
|
|
7376
|
+
}>;
|
|
7377
|
+
readonly durability: Schema.Literal<"durable">;
|
|
7378
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
7379
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
7380
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
7381
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
7382
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
7383
|
+
readonly span: Schema.Struct<{
|
|
7384
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
7385
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
7386
|
+
readonly sampled: Schema.Boolean;
|
|
7387
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
7388
|
+
}>;
|
|
7389
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
7390
|
+
readonly context: Schema.Struct<{
|
|
7391
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
7392
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
7393
|
+
readonly sampled: Schema.Boolean;
|
|
7394
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
7395
|
+
}>;
|
|
7396
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
7397
|
+
}>>;
|
|
7398
|
+
}>>;
|
|
7399
|
+
}>, Schema.Struct<{
|
|
7400
|
+
readonly namespace: Schema.Literal<string>;
|
|
7401
|
+
readonly type: Schema.Literal<"ToolCallCreated">;
|
|
7402
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
7403
|
+
readonly payload: Schema.Struct<{
|
|
7404
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
7405
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
7406
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
7407
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
7408
|
+
readonly promptPart: Schema.Struct<{
|
|
7409
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
7410
|
+
readonly name: Schema.NonEmptyString;
|
|
7411
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
7412
|
+
readonly params: Schema.Unknown;
|
|
7413
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
7414
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
7415
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
7416
|
+
}>;
|
|
7417
|
+
}>;
|
|
7418
|
+
readonly durability: Schema.Literal<"durable">;
|
|
7419
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
7420
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
7421
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
7422
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
7423
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
7424
|
+
readonly span: Schema.Struct<{
|
|
7425
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
7426
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
7427
|
+
readonly sampled: Schema.Boolean;
|
|
7428
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
7429
|
+
}>;
|
|
7430
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
7431
|
+
readonly context: Schema.Struct<{
|
|
7432
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
7433
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
7434
|
+
readonly sampled: Schema.Boolean;
|
|
7435
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
7436
|
+
}>;
|
|
7437
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
7438
|
+
}>>;
|
|
7439
|
+
}>>;
|
|
7440
|
+
}>]>, Schema.Struct<{
|
|
6680
7441
|
readonly namespace: Schema.Literal<string>;
|
|
6681
7442
|
readonly type: Schema.Literal<"SessionConfigured">;
|
|
6682
7443
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -8572,5 +9333,5 @@ declare const decodeUnknownEDADurableEventSync: (input: unknown) => EDADurableEv
|
|
|
8572
9333
|
/** Effectful V1+ router for untrusted framework-owned durable event boundaries. */
|
|
8573
9334
|
declare const decodeUnknownEDADurableEvent: (input: unknown) => Effect.Effect<EDADurableEvent, unknown>;
|
|
8574
9335
|
//#endregion
|
|
8575
|
-
export {
|
|
8576
|
-
//# sourceMappingURL=durable-
|
|
9336
|
+
export { LegacyTurnAttemptCompletedEvent as $, runInterruptedEventType as $n, ToolCallRejectionReason as $t, CompactionFailedEvent as A, baseStateRequestedEventType as An, SteeringMessageCancelledPayload as At, ContextRebasedPayload as B, contextProjectedEventType as Bn, SystemMessageCommittedEvent as Bt, CommandEvent as C, UserMessageSubmittedEvent as Cn, userMessagePromotedEventType as Cr, RunSchedulingInvalidatedPayload as Ct, CommandStartedPayload as D, assistantPartialCommittedEventType as Dn, RunStartedPayload as Dt, CommandStartedEvent as E, assistantMessageImportedEventType as En, RunStartedEvent as Et, CompactionStartedPayload as F, commandStartedEventType as Fn, StopTurnAppliedPayload as Ft, InferenceEvent as G, inferenceFailedEventType as Gn, ToolCallCreatedPayload as Gt, EDADurableEventV1 as H, decodeUnknownEDADurableEvent as Hn, ToolCallCompletedEvent as Ht, ContextAndCompactionEvent as I, compactionCompletedEventType as In, StopTurnRequestedEvent as It, InferenceStartedEvent as J, messageQueuePausedEventType as Jn, ToolCallFailedPayload as Jt, InferenceFailedEvent as K, inferenceStartedEventType as Kn, ToolCallEvent as Kt, ContextProjectedEvent as L, compactionFailedEventType as Ln, StopTurnRequestedPayload as Lt, CompactionRequestedEvent as M, commandCancelledEventType as Mn, SteeringMessageQueuedPayload as Mt, CompactionRequestedPayload as N, commandCompletedEventType as Nn, StopControlEvent as Nt, CompactionCompletedEvent as O, baseStateCreatedEventType as On, SessionConfiguredEvent as Ot, CompactionStartedEvent as P, commandFailedEventType as Pn, StopTurnAppliedEvent as Pt, LegacyToolCallCreatedEvent as Q, runFailedEventType as Qn, ToolCallRejectionFeedback as Qt, ContextProjectedPayload as R, compactionRequestedEventType as Rn, SummaryCreatedEvent as Rt, CommandCompletedPayload as S, UserMessagePromotedPayload as Sn, userMessageCommittedEventType as Sr, RunSchedulingInvalidatedEvent as St, CommandFailedPayload as T, assistantMessageCommittedEventType as Tn, RunSchedulingRequestedPayload as Tt, InferenceCompletedEvent as U, decodeUnknownEDADurableEventSync as Un, ToolCallCompletedPayload as Ut, EDADurableEvent as V, contextRebasedEventType as Vn, SystemMessageCommittedPayload as Vt, InferenceCompletedPayload as W, inferenceCompletedEventType as Wn, ToolCallCreatedEvent as Wt, LegacyAssistantMessageCommittedEvent as X, recoveryCompletedEventType as Xn, ToolCallRejectedEvent as Xt, InferenceStartedPayload as Y, pendingMessagesPausedEventType as Yn, ToolCallPromptPart as Yt, LegacyAttemptEvent as Z, runCompletedEventType as Zn, ToolCallRejectedPayload as Zt, CommandAdmittedEvent as _, UserMessageCancelledPayload as _n, turnCompletedEventType as _r, RunSchedulingDeliveredEvent as _t, AssistantMessageImportedPayload as a, ToolSuccessPromptPart as an, sessionConfiguredEventType as ar, PendingMessagesPausedPayload as at, CommandCancelledPayload as b, UserMessageDisposition as bn, turnStoppedEventType as br, RunSchedulingGrantedEvent as bt, AssistantPromptPart as c, TurnEvent as cn, stopTurnAppliedEventType as cr, RecoveryContinuation as ct, BaseStateCreatedPayload as d, TurnStartedEvent as dn, systemMessageCommittedEventType as dr, RunCompletedPayload as dt, ToolCallStartedEvent as en, runSchedulingDeliveredEventType as er, LegacyTurnAttemptStartedEvent as et, BaseStateEvent as f, TurnStartedPayload as fn, toolCallCompletedEventType as fr, RunEvent as ft, BaseStateRequestedPayload as g, UserMessageCancelledEvent as gn, toolCallStartedEventType as gr, RunInterruptedPayload as gt, BaseStateRequestedEvent as h, UserMessageCancellationReason as hn, toolCallRejectedEventType as hr, RunInterruptedEvent as ht, AssistantMessageImportedEvent as i, ToolRejectionPromptPart as in, runStartedEventType as ir, PendingMessagesPausedEvent as it, CompactionFailedPayload as j, commandAdmittedEventType as jn, SteeringMessageQueuedEvent as jt, CompactionCompletedPayload as k, baseStateFailedEventType as kn, SteeringMessageCancelledEvent as kt, AssistantPromptParts as l, TurnFailedEvent as ln, stopTurnRequestedEventType as lr, RecoveryEvent as lt, BaseStateFailedPayload as m, TurnStoppedPayload as mn, toolCallFailedEventType as mr, RunFailedPayload as mt, AssistantMessageCommittedPayload as n, ToolFailurePromptPart as nn, runSchedulingInvalidatedEventType as nr, MessageQueuePausedEvent as nt, AssistantPartialCommittedEvent as o, TurnCompletedEvent as on, steeringMessageCancelledEventType as or, RecoveryCompletedEvent as ot, BaseStateFailedEvent as p, TurnStoppedEvent as pn, toolCallCreatedEventType as pr, RunFailedEvent as pt, InferenceFailedPayload as q, interpretLegacyAttemptForReduction as qn, ToolCallFailedEvent as qt, AssistantMessageContent as r, ToolPromptPart as rn, runSchedulingRequestedEventType as rr, MessageQueuePausedPayload as rt, AssistantPartialCommittedPayload as s, TurnCompletedPayload as sn, steeringMessageQueuedEventType as sr, RecoveryCompletedPayload as st, AssistantMessageCommittedEvent as t, ToolCallStartedPayload as tn, runSchedulingGrantedEventType as tr, MessageEvent as tt, BaseStateCreatedEvent as u, TurnFailedPayload as un, summaryCreatedEventType as ur, RunCompletedEvent as ut, CommandAdmittedPayload as v, UserMessageCommittedEvent as vn, turnFailedEventType as vr, RunSchedulingDeliveredPayload as vt, CommandFailedEvent as w, UserMessageSubmittedPayload as wn, userMessageSubmittedEventType as wr, RunSchedulingRequestedEvent as wt, CommandCompletedEvent as x, UserMessagePromotedEvent as xn, userMessageCancelledEventType as xr, RunSchedulingGrantedPayload as xt, CommandCancelledEvent as y, UserMessageCommittedPayload as yn, turnStartedEventType as yr, RunSchedulingEvent as yt, ContextRebasedEvent as z, compactionStartedEventType as zn, SummaryCreatedPayload as zt };
|
|
9337
|
+
//# sourceMappingURL=durable-RSiz3YBK.d.ts.map
|