@effect-agent/testing 0.1.0-beta.21 → 0.1.0-beta.23

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/index.d.mts CHANGED
@@ -983,389 +983,7 @@ declare const phase3TravelPlannerInitialBatch: CanonicalBatch;
983
983
  declare const phase3TravelPlannerCompletionBatch: CanonicalBatch;
984
984
  declare const phase3TravelPlannerBatches: readonly [CanonicalBatch, CanonicalBatch];
985
985
  /** Portable current-version fixture; it contains no passenger identity or credentials. */
986
- declare const phase3TravelPlannerEncodedFixture: readonly {
987
- readonly batchId: string;
988
- readonly producerId: string;
989
- readonly records: readonly [{
990
- readonly recordId: string;
991
- readonly family: "conversation";
992
- readonly schemaVersion: 1;
993
- readonly createdAt: string;
994
- readonly deploymentId: string;
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
- readonly _tag: "ConversationCreated";
1033
- readonly agentId: string;
1034
- readonly definitions: {
1035
- readonly agent: string;
1036
- readonly model: string;
1037
- readonly tools: string;
1038
- };
1039
- } | {
1040
- readonly _tag: "UserInputRecorded";
1041
- readonly submissionId: string;
1042
- readonly kind: "follow-up" | "steering" | "user";
1043
- readonly runId?: string | undefined;
1044
- readonly input: Schema.Json;
1045
- } | {
1046
- readonly _tag: "ModelCompleted";
1047
- readonly runId: string;
1048
- readonly output: Schema.Json;
1049
- } | {
1050
- readonly _tag: "ModelResponseRecorded";
1051
- readonly runId: string;
1052
- readonly turnId: string;
1053
- readonly turn: number;
1054
- readonly messages: Schema.Json;
1055
- readonly messagesDigest: string;
1056
- readonly inputTokens?: number | undefined;
1057
- readonly outputTokens?: number | undefined;
1058
- readonly costMicrousd?: number | undefined;
1059
- } | {
1060
- readonly _tag: "ToolCallSettled";
1061
- readonly runId: string;
1062
- readonly toolCallId: string;
1063
- readonly toolName: string;
1064
- readonly result: Schema.Json;
1065
- readonly isFailure: boolean;
1066
- } | {
1067
- readonly _tag: "ToolStepSettled";
1068
- readonly runId: string;
1069
- readonly toolCallId: string;
1070
- readonly stepName: string;
1071
- readonly output: Schema.Json;
1072
- readonly outputDigest: string;
1073
- } | {
1074
- readonly _tag: "ToolApprovalRequested";
1075
- readonly runId: string;
1076
- readonly turnId: string;
1077
- readonly turn: number;
1078
- readonly toolCallId: string;
1079
- readonly toolName: string;
1080
- readonly parametersDigest: string;
1081
- } | {
1082
- readonly _tag: "ModelResponseInterrupted";
1083
- readonly runId: string;
1084
- readonly supersededEpoch: number;
1085
- readonly attemptId: string;
1086
- readonly reason: string;
1087
- } | {
1088
- readonly _tag: "CompactionCreated";
1089
- readonly runId: string;
1090
- readonly turn: number;
1091
- readonly kind: "clear-tool-results" | "summarize";
1092
- readonly coversThrough: number;
1093
- readonly summary?: string | undefined;
1094
- } | {
1095
- readonly _tag: "RunFailed";
1096
- readonly runId: string;
1097
- readonly failure: Schema.Json;
1098
- } | {
1099
- readonly _tag: "RunCompleted";
1100
- readonly runId: string;
1101
- readonly output: Schema.Json;
1102
- } | {
1103
- readonly _tag: "SubmissionSettled";
1104
- readonly submissionId: string;
1105
- readonly settlementId: string;
1106
- readonly receiptId: string;
1107
- readonly outcome: "aborted" | "completed" | "failed";
1108
- readonly runId?: string | undefined;
1109
- readonly result?: Schema.Json | undefined;
1110
- readonly runDisposition?: Schema.Json | undefined;
1111
- readonly finishReason?: "budget-exhausted" | undefined;
1112
- readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1113
- readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
1114
- } | {
1115
- readonly _tag: "SubagentRequested";
1116
- readonly runId: string;
1117
- readonly turnId: string;
1118
- readonly turn: number;
1119
- readonly toolCallId: string;
1120
- readonly delegationId: string;
1121
- readonly targetAgentId: string;
1122
- readonly targetDigests: {
1123
- readonly agent: string;
1124
- readonly model: string;
1125
- readonly tools: string;
1126
- };
1127
- readonly childInput: Schema.Json;
1128
- readonly childInputDigest: string;
1129
- readonly grantDigest: string;
1130
- readonly reservationId: string;
1131
- readonly reservationDigest: string;
1132
- readonly childConversationId: string;
1133
- readonly childPrincipal: string;
1134
- readonly childIdempotencyKey: string;
1135
- } | {
1136
- readonly _tag: "SubagentStarted";
1137
- readonly runId: string;
1138
- readonly toolCallId: string;
1139
- readonly childConversationId: string;
1140
- readonly childSubmissionId: string;
1141
- readonly childReceiptId: string;
1142
- readonly childRunId: string;
1143
- } | {
1144
- readonly _tag: "SubagentJoined";
1145
- readonly runId: string;
1146
- readonly toolCallId: string;
1147
- readonly childSubmissionId: string;
1148
- readonly childSettlementId: string;
1149
- readonly childOutcome: "aborted" | "completed" | "failed";
1150
- readonly childResultDigest: string;
1151
- readonly projectedResultDigest: string;
1152
- readonly usageSummary: Schema.Json;
1153
- readonly reservationId: string;
1154
- readonly finalAccounting: Schema.Json;
1155
- } | {
1156
- readonly _tag: "SubagentLineageRecorded";
1157
- readonly parentLink: {
1158
- readonly delegationId: string;
1159
- readonly parentAgentId: string;
1160
- readonly parentConversationId: string;
1161
- readonly parentRunId: string;
1162
- readonly parentToolCallId: string;
1163
- readonly depth: number;
1164
- };
1165
- readonly parentSubmissionId: string;
1166
- readonly childDefinitionDigests: {
1167
- readonly agent: string;
1168
- readonly model: string;
1169
- readonly tools: string;
1170
- };
1171
- readonly childInputDigest: string;
1172
- readonly grantDigest: string;
1173
- } | {
1174
- readonly _tag: "RepairAnnotated";
1175
- readonly reason: string;
1176
- readonly details: Schema.Json;
1177
- };
1178
- }, ...{
1179
- readonly recordId: string;
1180
- readonly family: "conversation";
1181
- readonly schemaVersion: 1;
1182
- readonly createdAt: string;
1183
- readonly deploymentId: string;
1184
- readonly payload: {
1185
- readonly _tag: "AbortRequested";
1186
- readonly submissionId: string;
1187
- readonly author: string;
1188
- readonly reason: string;
1189
- } | {
1190
- readonly _tag: "ToolCallResolved";
1191
- readonly runId: string;
1192
- readonly toolCallId: string;
1193
- readonly resolution: "completed-with-result" | "failed-with-error" | "never-started" | "safe-retry";
1194
- readonly author: string;
1195
- readonly reason: string;
1196
- } | {
1197
- readonly _tag: "ToolCallPrepared";
1198
- readonly runId: string;
1199
- readonly turnId: string;
1200
- readonly turn: number;
1201
- readonly toolCallId: string;
1202
- readonly toolName: string;
1203
- readonly parameters: Schema.Json;
1204
- readonly parametersDigest: string;
1205
- } | {
1206
- readonly _tag: "ToolCallUnknown";
1207
- readonly runId: string;
1208
- readonly turn: number;
1209
- readonly toolCallId: string;
1210
- readonly toolName: string;
1211
- readonly reason: string;
1212
- } | {
1213
- readonly _tag: "ToolApprovalDecided";
1214
- readonly runId: string;
1215
- readonly turn: number;
1216
- readonly toolCallId: string;
1217
- readonly decision: "approved" | "denied";
1218
- readonly resolver: string;
1219
- readonly reason: string;
1220
- } | {
1221
- readonly _tag: "ConversationCreated";
1222
- readonly agentId: string;
1223
- readonly definitions: {
1224
- readonly agent: string;
1225
- readonly model: string;
1226
- readonly tools: string;
1227
- };
1228
- } | {
1229
- readonly _tag: "UserInputRecorded";
1230
- readonly submissionId: string;
1231
- readonly kind: "follow-up" | "steering" | "user";
1232
- readonly runId?: string | undefined;
1233
- readonly input: Schema.Json;
1234
- } | {
1235
- readonly _tag: "ModelCompleted";
1236
- readonly runId: string;
1237
- readonly output: Schema.Json;
1238
- } | {
1239
- readonly _tag: "ModelResponseRecorded";
1240
- readonly runId: string;
1241
- readonly turnId: string;
1242
- readonly turn: number;
1243
- readonly messages: Schema.Json;
1244
- readonly messagesDigest: string;
1245
- readonly inputTokens?: number | undefined;
1246
- readonly outputTokens?: number | undefined;
1247
- readonly costMicrousd?: number | undefined;
1248
- } | {
1249
- readonly _tag: "ToolCallSettled";
1250
- readonly runId: string;
1251
- readonly toolCallId: string;
1252
- readonly toolName: string;
1253
- readonly result: Schema.Json;
1254
- readonly isFailure: boolean;
1255
- } | {
1256
- readonly _tag: "ToolStepSettled";
1257
- readonly runId: string;
1258
- readonly toolCallId: string;
1259
- readonly stepName: string;
1260
- readonly output: Schema.Json;
1261
- readonly outputDigest: string;
1262
- } | {
1263
- readonly _tag: "ToolApprovalRequested";
1264
- readonly runId: string;
1265
- readonly turnId: string;
1266
- readonly turn: number;
1267
- readonly toolCallId: string;
1268
- readonly toolName: string;
1269
- readonly parametersDigest: string;
1270
- } | {
1271
- readonly _tag: "ModelResponseInterrupted";
1272
- readonly runId: string;
1273
- readonly supersededEpoch: number;
1274
- readonly attemptId: string;
1275
- readonly reason: string;
1276
- } | {
1277
- readonly _tag: "CompactionCreated";
1278
- readonly runId: string;
1279
- readonly turn: number;
1280
- readonly kind: "clear-tool-results" | "summarize";
1281
- readonly coversThrough: number;
1282
- readonly summary?: string | undefined;
1283
- } | {
1284
- readonly _tag: "RunFailed";
1285
- readonly runId: string;
1286
- readonly failure: Schema.Json;
1287
- } | {
1288
- readonly _tag: "RunCompleted";
1289
- readonly runId: string;
1290
- readonly output: Schema.Json;
1291
- } | {
1292
- readonly _tag: "SubmissionSettled";
1293
- readonly submissionId: string;
1294
- readonly settlementId: string;
1295
- readonly receiptId: string;
1296
- readonly outcome: "aborted" | "completed" | "failed";
1297
- readonly runId?: string | undefined;
1298
- readonly result?: Schema.Json | undefined;
1299
- readonly runDisposition?: Schema.Json | undefined;
1300
- readonly finishReason?: "budget-exhausted" | undefined;
1301
- readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1302
- readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
1303
- } | {
1304
- readonly _tag: "SubagentRequested";
1305
- readonly runId: string;
1306
- readonly turnId: string;
1307
- readonly turn: number;
1308
- readonly toolCallId: string;
1309
- readonly delegationId: string;
1310
- readonly targetAgentId: string;
1311
- readonly targetDigests: {
1312
- readonly agent: string;
1313
- readonly model: string;
1314
- readonly tools: string;
1315
- };
1316
- readonly childInput: Schema.Json;
1317
- readonly childInputDigest: string;
1318
- readonly grantDigest: string;
1319
- readonly reservationId: string;
1320
- readonly reservationDigest: string;
1321
- readonly childConversationId: string;
1322
- readonly childPrincipal: string;
1323
- readonly childIdempotencyKey: string;
1324
- } | {
1325
- readonly _tag: "SubagentStarted";
1326
- readonly runId: string;
1327
- readonly toolCallId: string;
1328
- readonly childConversationId: string;
1329
- readonly childSubmissionId: string;
1330
- readonly childReceiptId: string;
1331
- readonly childRunId: string;
1332
- } | {
1333
- readonly _tag: "SubagentJoined";
1334
- readonly runId: string;
1335
- readonly toolCallId: string;
1336
- readonly childSubmissionId: string;
1337
- readonly childSettlementId: string;
1338
- readonly childOutcome: "aborted" | "completed" | "failed";
1339
- readonly childResultDigest: string;
1340
- readonly projectedResultDigest: string;
1341
- readonly usageSummary: Schema.Json;
1342
- readonly reservationId: string;
1343
- readonly finalAccounting: Schema.Json;
1344
- } | {
1345
- readonly _tag: "SubagentLineageRecorded";
1346
- readonly parentLink: {
1347
- readonly delegationId: string;
1348
- readonly parentAgentId: string;
1349
- readonly parentConversationId: string;
1350
- readonly parentRunId: string;
1351
- readonly parentToolCallId: string;
1352
- readonly depth: number;
1353
- };
1354
- readonly parentSubmissionId: string;
1355
- readonly childDefinitionDigests: {
1356
- readonly agent: string;
1357
- readonly model: string;
1358
- readonly tools: string;
1359
- };
1360
- readonly childInputDigest: string;
1361
- readonly grantDigest: string;
1362
- } | {
1363
- readonly _tag: "RepairAnnotated";
1364
- readonly reason: string;
1365
- readonly details: Schema.Json;
1366
- };
1367
- }[]];
1368
- }[];
986
+ declare const phase3TravelPlannerEncodedFixture: ReadonlyArray<typeof CanonicalBatch.Encoded>;
1369
987
  declare const TravelPlannerProjectionError_base: Schema.Class<TravelPlannerProjectionError, Schema.TaggedStruct<"TravelPlannerProjectionError", {
1370
988
  readonly message: Schema.String;
1371
989
  }>, import("effect/Cause").YieldableError>;