@effect-agent/testing 0.1.0-beta.12 → 0.1.0-beta.13
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 +76 -72
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -993,6 +993,42 @@ 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
|
+
} | {
|
|
996
1032
|
readonly _tag: "ConversationCreated";
|
|
997
1033
|
readonly agentId: string;
|
|
998
1034
|
readonly definitions: {
|
|
@@ -1020,15 +1056,6 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
|
|
|
1020
1056
|
readonly inputTokens?: number | undefined;
|
|
1021
1057
|
readonly outputTokens?: number | undefined;
|
|
1022
1058
|
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;
|
|
1032
1059
|
} | {
|
|
1033
1060
|
readonly _tag: "ToolCallSettled";
|
|
1034
1061
|
readonly runId: string;
|
|
@@ -1036,20 +1063,6 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
|
|
|
1036
1063
|
readonly toolName: string;
|
|
1037
1064
|
readonly result: Schema.Json;
|
|
1038
1065
|
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;
|
|
1053
1066
|
} | {
|
|
1054
1067
|
readonly _tag: "ToolStepSettled";
|
|
1055
1068
|
readonly runId: string;
|
|
@@ -1065,14 +1078,6 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
|
|
|
1065
1078
|
readonly toolCallId: string;
|
|
1066
1079
|
readonly toolName: string;
|
|
1067
1080
|
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;
|
|
1076
1081
|
} | {
|
|
1077
1082
|
readonly _tag: "ModelResponseInterrupted";
|
|
1078
1083
|
readonly runId: string;
|
|
@@ -1094,11 +1099,6 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
|
|
|
1094
1099
|
readonly _tag: "RunCompleted";
|
|
1095
1100
|
readonly runId: string;
|
|
1096
1101
|
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;
|
|
@@ -1108,6 +1108,8 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
|
|
|
1108
1108
|
readonly runId?: string | undefined;
|
|
1109
1109
|
readonly result?: Schema.Json | undefined;
|
|
1110
1110
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
1111
|
+
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
1112
|
+
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
1111
1113
|
} | {
|
|
1112
1114
|
readonly _tag: "SubagentRequested";
|
|
1113
1115
|
readonly runId: string;
|
|
@@ -1179,6 +1181,42 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
|
|
|
1179
1181
|
readonly createdAt: string;
|
|
1180
1182
|
readonly deploymentId: string;
|
|
1181
1183
|
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
|
+
} | {
|
|
1182
1220
|
readonly _tag: "ConversationCreated";
|
|
1183
1221
|
readonly agentId: string;
|
|
1184
1222
|
readonly definitions: {
|
|
@@ -1206,15 +1244,6 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
|
|
|
1206
1244
|
readonly inputTokens?: number | undefined;
|
|
1207
1245
|
readonly outputTokens?: number | undefined;
|
|
1208
1246
|
readonly costMicrousd?: number | undefined;
|
|
1209
|
-
} | {
|
|
1210
|
-
readonly _tag: "ToolCallPrepared";
|
|
1211
|
-
readonly runId: string;
|
|
1212
|
-
readonly turnId: string;
|
|
1213
|
-
readonly turn: number;
|
|
1214
|
-
readonly toolCallId: string;
|
|
1215
|
-
readonly toolName: string;
|
|
1216
|
-
readonly parameters: Schema.Json;
|
|
1217
|
-
readonly parametersDigest: string;
|
|
1218
1247
|
} | {
|
|
1219
1248
|
readonly _tag: "ToolCallSettled";
|
|
1220
1249
|
readonly runId: string;
|
|
@@ -1222,20 +1251,6 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
|
|
|
1222
1251
|
readonly toolName: string;
|
|
1223
1252
|
readonly result: Schema.Json;
|
|
1224
1253
|
readonly isFailure: boolean;
|
|
1225
|
-
} | {
|
|
1226
|
-
readonly _tag: "ToolCallUnknown";
|
|
1227
|
-
readonly runId: string;
|
|
1228
|
-
readonly turn: number;
|
|
1229
|
-
readonly toolCallId: string;
|
|
1230
|
-
readonly toolName: string;
|
|
1231
|
-
readonly reason: string;
|
|
1232
|
-
} | {
|
|
1233
|
-
readonly _tag: "ToolCallResolved";
|
|
1234
|
-
readonly runId: string;
|
|
1235
|
-
readonly toolCallId: string;
|
|
1236
|
-
readonly resolution: "completed-with-result" | "failed-with-error" | "never-started" | "safe-retry";
|
|
1237
|
-
readonly author: string;
|
|
1238
|
-
readonly reason: string;
|
|
1239
1254
|
} | {
|
|
1240
1255
|
readonly _tag: "ToolStepSettled";
|
|
1241
1256
|
readonly runId: string;
|
|
@@ -1251,14 +1266,6 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
|
|
|
1251
1266
|
readonly toolCallId: string;
|
|
1252
1267
|
readonly toolName: string;
|
|
1253
1268
|
readonly parametersDigest: string;
|
|
1254
|
-
} | {
|
|
1255
|
-
readonly _tag: "ToolApprovalDecided";
|
|
1256
|
-
readonly runId: string;
|
|
1257
|
-
readonly turn: number;
|
|
1258
|
-
readonly toolCallId: string;
|
|
1259
|
-
readonly decision: "approved" | "denied";
|
|
1260
|
-
readonly resolver: string;
|
|
1261
|
-
readonly reason: string;
|
|
1262
1269
|
} | {
|
|
1263
1270
|
readonly _tag: "ModelResponseInterrupted";
|
|
1264
1271
|
readonly runId: string;
|
|
@@ -1280,11 +1287,6 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
|
|
|
1280
1287
|
readonly _tag: "RunCompleted";
|
|
1281
1288
|
readonly runId: string;
|
|
1282
1289
|
readonly output: Schema.Json;
|
|
1283
|
-
} | {
|
|
1284
|
-
readonly _tag: "AbortRequested";
|
|
1285
|
-
readonly submissionId: string;
|
|
1286
|
-
readonly author: string;
|
|
1287
|
-
readonly reason: string;
|
|
1288
1290
|
} | {
|
|
1289
1291
|
readonly _tag: "SubmissionSettled";
|
|
1290
1292
|
readonly submissionId: string;
|
|
@@ -1294,6 +1296,8 @@ declare const phase3TravelPlannerEncodedFixture: readonly {
|
|
|
1294
1296
|
readonly runId?: string | undefined;
|
|
1295
1297
|
readonly result?: Schema.Json | undefined;
|
|
1296
1298
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
1299
|
+
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
1300
|
+
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
1297
1301
|
} | {
|
|
1298
1302
|
readonly _tag: "SubagentRequested";
|
|
1299
1303
|
readonly runId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-agent/testing",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.13",
|
|
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.
|
|
12
|
-
"@effect-agent/core": "0.1.0-beta.
|
|
13
|
-
"@effect-agent/engine": "0.1.0-beta.
|
|
14
|
-
"@effect-agent/platform-node": "0.1.0-beta.
|
|
15
|
-
"@effect-agent/sandbox": "0.1.0-beta.
|
|
16
|
-
"@effect-agent/session": "0.1.0-beta.
|
|
17
|
-
"@effect-agent/storage-memory": "0.1.0-beta.
|
|
18
|
-
"@effect-agent/storage-sqlite": "0.1.0-beta.
|
|
11
|
+
"@effect-agent/capabilities": "0.1.0-beta.13",
|
|
12
|
+
"@effect-agent/core": "0.1.0-beta.13",
|
|
13
|
+
"@effect-agent/engine": "0.1.0-beta.13",
|
|
14
|
+
"@effect-agent/platform-node": "0.1.0-beta.13",
|
|
15
|
+
"@effect-agent/sandbox": "0.1.0-beta.13",
|
|
16
|
+
"@effect-agent/session": "0.1.0-beta.13",
|
|
17
|
+
"@effect-agent/storage-memory": "0.1.0-beta.13",
|
|
18
|
+
"@effect-agent/storage-sqlite": "0.1.0-beta.13",
|
|
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.",
|