@effect-agent/testing 0.1.0-beta.16 → 0.1.0-beta.17

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +83 -81
  2. package/package.json +9 -9
package/dist/index.d.mts CHANGED
@@ -342,7 +342,7 @@ declare const DocSummarizer: import("@effect-agent/core").Definition<typeof Summ
342
342
  readonly failure: typeof DocumentUnavailable;
343
343
  readonly failureMode: "error";
344
344
  }, DocumentLibrary>;
345
- }>>;
345
+ }>, undefined>;
346
346
  declare const SummaryRequest_base: Schema.Class<SummaryRequest, Schema.Struct<{
347
347
  readonly documentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/testing/docs-researcher/ResearchDocumentId">;
348
348
  }>, {}>;
@@ -415,7 +415,7 @@ declare const DocsResearcher: import("@effect-agent/core").Definition<typeof Res
415
415
  readonly failure: import("@effect-agent/capabilities").SubagentToolFailure<typeof DocumentSummaryFailed>;
416
416
  readonly failureMode: "error";
417
417
  }, import("@effect-agent/engine").AgentSpawner | import("@effect-agent/core").IdGenerator | import("@effect-agent/engine").RunEventSink | import("@effect-agent/engine").SubagentDurability>;
418
- }>>;
418
+ }>, undefined>;
419
419
  /** The default two-document research mission. */
420
420
  declare const researchMissionRequest: ResearchRequest;
421
421
  /** The coordinator's expected final digest for the given documents. */
@@ -697,7 +697,7 @@ declare const TravelPlanner: import("@effect-agent/core").Definition<typeof Trip
697
697
  readonly failure: typeof LodgingUnavailable;
698
698
  readonly failureMode: "error";
699
699
  }, LodgingCatalog>;
700
- }>>;
700
+ }>, undefined>;
701
701
  //#endregion
702
702
  //#region src/fixtures/travel-planner/deterministic-layers.d.ts
703
703
  declare const CatalogLifecycleCounts_base: Schema.Class<CatalogLifecycleCounts, Schema.Struct<{
@@ -955,7 +955,7 @@ declare const TravelPlannerPhase2: import("@effect-agent/core").Definition<typeo
955
955
  readonly failure: typeof LodgingUnavailable;
956
956
  readonly failureMode: "error";
957
957
  }, LodgingCatalog>;
958
- }>>;
958
+ }>, undefined>;
959
959
  //#endregion
960
960
  //#region src/fixtures/travel-planner/phase3.d.ts
961
961
  declare const TravelPlannerPersistenceProfile_base: Schema.Class<TravelPlannerPersistenceProfile, Schema.Struct<{
@@ -993,42 +993,6 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
993
993
  readonly createdAt: string;
994
994
  readonly deploymentId: string;
995
995
  readonly payload: {
996
- readonly _tag: "AbortRequested";
997
- readonly submissionId: string;
998
- readonly author: string;
999
- readonly reason: string;
1000
- } | {
1001
- readonly _tag: "ToolCallResolved";
1002
- readonly runId: string;
1003
- readonly toolCallId: string;
1004
- readonly resolution: "completed-with-result" | "failed-with-error" | "never-started" | "safe-retry";
1005
- readonly author: string;
1006
- readonly reason: string;
1007
- } | {
1008
- readonly _tag: "ToolCallPrepared";
1009
- readonly runId: string;
1010
- readonly turnId: string;
1011
- readonly turn: number;
1012
- readonly toolCallId: string;
1013
- readonly toolName: string;
1014
- readonly parameters: Schema.Json;
1015
- readonly parametersDigest: string;
1016
- } | {
1017
- readonly _tag: "ToolCallUnknown";
1018
- readonly runId: string;
1019
- readonly turn: number;
1020
- readonly toolCallId: string;
1021
- readonly toolName: string;
1022
- readonly reason: string;
1023
- } | {
1024
- readonly _tag: "ToolApprovalDecided";
1025
- readonly runId: string;
1026
- readonly turn: number;
1027
- readonly toolCallId: string;
1028
- readonly decision: "approved" | "denied";
1029
- readonly resolver: string;
1030
- readonly reason: string;
1031
- } | {
1032
996
  readonly _tag: "ConversationCreated";
1033
997
  readonly agentId: string;
1034
998
  readonly definitions: {
@@ -1056,6 +1020,15 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
1056
1020
  readonly inputTokens?: number | undefined;
1057
1021
  readonly outputTokens?: number | undefined;
1058
1022
  readonly costMicrousd?: number | undefined;
1023
+ } | {
1024
+ readonly _tag: "ToolCallPrepared";
1025
+ readonly runId: string;
1026
+ readonly turnId: string;
1027
+ readonly turn: number;
1028
+ readonly toolCallId: string;
1029
+ readonly toolName: string;
1030
+ readonly parameters: Schema.Json;
1031
+ readonly parametersDigest: string;
1059
1032
  } | {
1060
1033
  readonly _tag: "ToolCallSettled";
1061
1034
  readonly runId: string;
@@ -1063,6 +1036,20 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
1063
1036
  readonly toolName: string;
1064
1037
  readonly result: Schema.Json;
1065
1038
  readonly isFailure: boolean;
1039
+ } | {
1040
+ readonly _tag: "ToolCallUnknown";
1041
+ readonly runId: string;
1042
+ readonly turn: number;
1043
+ readonly toolCallId: string;
1044
+ readonly toolName: string;
1045
+ readonly reason: string;
1046
+ } | {
1047
+ readonly _tag: "ToolCallResolved";
1048
+ readonly runId: string;
1049
+ readonly toolCallId: string;
1050
+ readonly resolution: "completed-with-result" | "failed-with-error" | "never-started" | "safe-retry";
1051
+ readonly author: string;
1052
+ readonly reason: string;
1066
1053
  } | {
1067
1054
  readonly _tag: "ToolStepSettled";
1068
1055
  readonly runId: string;
@@ -1078,6 +1065,14 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
1078
1065
  readonly toolCallId: string;
1079
1066
  readonly toolName: string;
1080
1067
  readonly parametersDigest: string;
1068
+ } | {
1069
+ readonly _tag: "ToolApprovalDecided";
1070
+ readonly runId: string;
1071
+ readonly turn: number;
1072
+ readonly toolCallId: string;
1073
+ readonly decision: "approved" | "denied";
1074
+ readonly resolver: string;
1075
+ readonly reason: string;
1081
1076
  } | {
1082
1077
  readonly _tag: "ModelResponseInterrupted";
1083
1078
  readonly runId: string;
@@ -1099,6 +1094,11 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
1099
1094
  readonly _tag: "RunCompleted";
1100
1095
  readonly runId: string;
1101
1096
  readonly output: Schema.Json;
1097
+ } | {
1098
+ readonly _tag: "AbortRequested";
1099
+ readonly submissionId: string;
1100
+ readonly author: string;
1101
+ readonly reason: string;
1102
1102
  } | {
1103
1103
  readonly _tag: "SubmissionSettled";
1104
1104
  readonly submissionId: string;
@@ -1107,6 +1107,7 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
1107
1107
  readonly outcome: "aborted" | "completed" | "failed";
1108
1108
  readonly runId?: string | undefined;
1109
1109
  readonly result?: Schema.Json | undefined;
1110
+ readonly runDisposition?: Schema.Json | undefined;
1110
1111
  readonly finishReason?: "budget-exhausted" | undefined;
1111
1112
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1112
1113
  readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
@@ -1181,42 +1182,6 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
1181
1182
  readonly createdAt: string;
1182
1183
  readonly deploymentId: string;
1183
1184
  readonly payload: {
1184
- readonly _tag: "AbortRequested";
1185
- readonly submissionId: string;
1186
- readonly author: string;
1187
- readonly reason: string;
1188
- } | {
1189
- readonly _tag: "ToolCallResolved";
1190
- readonly runId: string;
1191
- readonly toolCallId: string;
1192
- readonly resolution: "completed-with-result" | "failed-with-error" | "never-started" | "safe-retry";
1193
- readonly author: string;
1194
- readonly reason: string;
1195
- } | {
1196
- readonly _tag: "ToolCallPrepared";
1197
- readonly runId: string;
1198
- readonly turnId: string;
1199
- readonly turn: number;
1200
- readonly toolCallId: string;
1201
- readonly toolName: string;
1202
- readonly parameters: Schema.Json;
1203
- readonly parametersDigest: string;
1204
- } | {
1205
- readonly _tag: "ToolCallUnknown";
1206
- readonly runId: string;
1207
- readonly turn: number;
1208
- readonly toolCallId: string;
1209
- readonly toolName: string;
1210
- readonly reason: string;
1211
- } | {
1212
- readonly _tag: "ToolApprovalDecided";
1213
- readonly runId: string;
1214
- readonly turn: number;
1215
- readonly toolCallId: string;
1216
- readonly decision: "approved" | "denied";
1217
- readonly resolver: string;
1218
- readonly reason: string;
1219
- } | {
1220
1185
  readonly _tag: "ConversationCreated";
1221
1186
  readonly agentId: string;
1222
1187
  readonly definitions: {
@@ -1244,6 +1209,15 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
1244
1209
  readonly inputTokens?: number | undefined;
1245
1210
  readonly outputTokens?: number | undefined;
1246
1211
  readonly costMicrousd?: number | undefined;
1212
+ } | {
1213
+ readonly _tag: "ToolCallPrepared";
1214
+ readonly runId: string;
1215
+ readonly turnId: string;
1216
+ readonly turn: number;
1217
+ readonly toolCallId: string;
1218
+ readonly toolName: string;
1219
+ readonly parameters: Schema.Json;
1220
+ readonly parametersDigest: string;
1247
1221
  } | {
1248
1222
  readonly _tag: "ToolCallSettled";
1249
1223
  readonly runId: string;
@@ -1251,6 +1225,20 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
1251
1225
  readonly toolName: string;
1252
1226
  readonly result: Schema.Json;
1253
1227
  readonly isFailure: boolean;
1228
+ } | {
1229
+ readonly _tag: "ToolCallUnknown";
1230
+ readonly runId: string;
1231
+ readonly turn: number;
1232
+ readonly toolCallId: string;
1233
+ readonly toolName: string;
1234
+ readonly reason: string;
1235
+ } | {
1236
+ readonly _tag: "ToolCallResolved";
1237
+ readonly runId: string;
1238
+ readonly toolCallId: string;
1239
+ readonly resolution: "completed-with-result" | "failed-with-error" | "never-started" | "safe-retry";
1240
+ readonly author: string;
1241
+ readonly reason: string;
1254
1242
  } | {
1255
1243
  readonly _tag: "ToolStepSettled";
1256
1244
  readonly runId: string;
@@ -1266,6 +1254,14 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
1266
1254
  readonly toolCallId: string;
1267
1255
  readonly toolName: string;
1268
1256
  readonly parametersDigest: string;
1257
+ } | {
1258
+ readonly _tag: "ToolApprovalDecided";
1259
+ readonly runId: string;
1260
+ readonly turn: number;
1261
+ readonly toolCallId: string;
1262
+ readonly decision: "approved" | "denied";
1263
+ readonly resolver: string;
1264
+ readonly reason: string;
1269
1265
  } | {
1270
1266
  readonly _tag: "ModelResponseInterrupted";
1271
1267
  readonly runId: string;
@@ -1287,6 +1283,11 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
1287
1283
  readonly _tag: "RunCompleted";
1288
1284
  readonly runId: string;
1289
1285
  readonly output: Schema.Json;
1286
+ } | {
1287
+ readonly _tag: "AbortRequested";
1288
+ readonly submissionId: string;
1289
+ readonly author: string;
1290
+ readonly reason: string;
1290
1291
  } | {
1291
1292
  readonly _tag: "SubmissionSettled";
1292
1293
  readonly submissionId: string;
@@ -1295,6 +1296,7 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
1295
1296
  readonly outcome: "aborted" | "completed" | "failed";
1296
1297
  readonly runId?: string | undefined;
1297
1298
  readonly result?: Schema.Json | undefined;
1299
+ readonly runDisposition?: Schema.Json | undefined;
1298
1300
  readonly finishReason?: "budget-exhausted" | undefined;
1299
1301
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1300
1302
  readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
@@ -2222,7 +2224,7 @@ declare const TravelPlannerPhase4: import("@effect-agent/core").Definition<typeo
2222
2224
  readonly failure: typeof LodgingUnavailable;
2223
2225
  readonly failureMode: "error";
2224
2226
  }, LodgingCatalog>;
2225
- }>>;
2227
+ }>, undefined>;
2226
2228
  /**
2227
2229
  * The P4 Agent Binding: the durable Travel Planner definition bound to a finite scripted model.
2228
2230
  * The scripted Layer is rebuilt per Run, so every Run of one Binding replays the same
@@ -2262,7 +2264,7 @@ declare const makePhase4TravelPlannerAgent: (turns?: ReadonlyArray<ScriptedTurnI
2262
2264
  readonly failure: typeof LodgingUnavailable;
2263
2265
  readonly failureMode: "error";
2264
2266
  }, LodgingCatalog>;
2265
- }>>, Model.Model<"scripted", import("effect/unstable/ai/LanguageModel").LanguageModel | ScriptedModel, never>>;
2267
+ }>, undefined>, Model.Model<"scripted", import("effect/unstable/ai/LanguageModel").LanguageModel | ScriptedModel, never>>;
2266
2268
  /**
2267
2269
  * Everything a durable worker needs beyond the runtime stack, reusing the deterministic P1
2268
2270
  * travel-service Layers. The durable coordinator supplies its own deterministic `IdGenerator`,
@@ -2624,7 +2626,7 @@ declare const TravelPlannerPhase5: import("@effect-agent/core").Definition<typeo
2624
2626
  readonly failure: typeof LodgingUnavailable;
2625
2627
  readonly failureMode: "error";
2626
2628
  }, LodgingCatalog>;
2627
- }>>;
2629
+ }>, undefined>;
2628
2630
  declare const TravelPlannerBookingEvidenceError_base: Schema.Class<TravelPlannerBookingEvidenceError, Schema.TaggedStruct<"TravelPlannerBookingEvidenceError", {
2629
2631
  readonly message: Schema.String;
2630
2632
  }>, import("effect/Cause").YieldableError>;
@@ -2749,7 +2751,7 @@ declare const DestinationResearcher: import("@effect-agent/core").Definition<typ
2749
2751
  readonly failure: typeof DestinationGuideUnavailable;
2750
2752
  readonly failureMode: "error";
2751
2753
  }, DestinationGuide>;
2752
- }>>;
2754
+ }>, undefined>;
2753
2755
  /** Deterministic guide lookup shared by the default and test-local guide Layers. */
2754
2756
  declare const destinationLookup: (query: DestinationQuery) => Effect.Effect<DestinationFacts, DestinationGuideUnavailable>;
2755
2757
  /** The report the scripted researcher writes after consulting the guide. */
@@ -2847,7 +2849,7 @@ declare const TravelCoordinator: import("@effect-agent/core").Definition<typeof
2847
2849
  readonly failure: import("@effect-agent/capabilities").SubagentToolFailure<typeof DestinationResearchFailed>;
2848
2850
  readonly failureMode: "error";
2849
2851
  }, import("@effect-agent/engine").AgentSpawner | import("@effect-agent/core").IdGenerator | import("@effect-agent/engine").RunEventSink | import("@effect-agent/engine").SubagentDurability>;
2850
- }>>;
2852
+ }>, undefined>;
2851
2853
  declare const researchMission: ResearchMission;
2852
2854
  declare const expectedDestinationShortlist: DestinationShortlist;
2853
2855
  interface DestinationResearchCall {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-agent/testing",
3
- "version": "0.1.0-beta.16",
3
+ "version": "0.1.0-beta.17",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.mts",
@@ -8,14 +8,14 @@
8
8
  }
9
9
  },
10
10
  "dependencies": {
11
- "@effect-agent/capabilities": "0.1.0-beta.16",
12
- "@effect-agent/core": "0.1.0-beta.16",
13
- "@effect-agent/engine": "0.1.0-beta.16",
14
- "@effect-agent/platform-node": "0.1.0-beta.16",
15
- "@effect-agent/sandbox": "0.1.0-beta.16",
16
- "@effect-agent/session": "0.1.0-beta.16",
17
- "@effect-agent/storage-memory": "0.1.0-beta.16",
18
- "@effect-agent/storage-sqlite": "0.1.0-beta.16",
11
+ "@effect-agent/capabilities": "0.1.0-beta.17",
12
+ "@effect-agent/core": "0.1.0-beta.17",
13
+ "@effect-agent/engine": "0.1.0-beta.17",
14
+ "@effect-agent/platform-node": "0.1.0-beta.17",
15
+ "@effect-agent/sandbox": "0.1.0-beta.17",
16
+ "@effect-agent/session": "0.1.0-beta.17",
17
+ "@effect-agent/storage-memory": "0.1.0-beta.17",
18
+ "@effect-agent/storage-sqlite": "0.1.0-beta.17",
19
19
  "effect": "4.0.0-beta.107"
20
20
  },
21
21
  "description": "Scripted models, deterministic fixtures, and adapter conformance kits for testing Effect Agent applications.",