@swirls/looms 0.13.2 → 0.14.0
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/CHANGELOG.md +6 -0
- package/dist/agent/agent-session.js +12 -11
- package/dist/agent/effects.d.ts +77 -0
- package/dist/agent/events.d.ts +70 -0
- package/dist/agent/events.js +2 -1
- package/dist/agent/module.d.ts +329 -0
- package/dist/agent/projections.d.ts +7 -0
- package/dist/agent/projections.js +2 -1
- package/dist/agent/scope.d.ts +70 -0
- package/dist/agent/signals.d.ts +63 -0
- package/dist/agent/signals.js +7 -4
- package/dist/agent/threads.js +8 -11
- package/dist/agent/types.d.ts +49 -0
- package/dist/agent/types.js +33 -0
- package/dist/ai-vercel/index.d.ts +1 -1
- package/dist/ai-vercel/index.js +1 -1
- package/dist/ai-vercel/messages.d.ts +19 -2
- package/dist/ai-vercel/messages.js +60 -2
- package/dist/ai-vercel/vercel-llm.d.ts +6 -0
- package/dist/ai-vercel/vercel-llm.js +9 -2
- package/dist/debugger/app/assets/{index-Dqg2e5oY.js → index-CtGiJU8b.js} +2 -2
- package/dist/debugger/app/assets/{routes-DMDW7tFG.js → routes-Bg0vNEOr.js} +2 -2
- package/dist/debugger/app/index.html +1 -1
- package/package.json +1 -1
package/dist/agent/module.d.ts
CHANGED
|
@@ -12,6 +12,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
12
12
|
readonly message: import("effect/Schema").Struct<{
|
|
13
13
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"system">, import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"assistant">, import("effect/Schema").Literal<"tool">]>;
|
|
14
14
|
readonly content: import("effect/Schema").String;
|
|
15
|
+
readonly attachments: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
16
|
+
readonly id: import("effect/Schema").String;
|
|
17
|
+
readonly mediaType: import("effect/Schema").String;
|
|
18
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
19
|
+
readonly size: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
20
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
21
|
+
}>>>;
|
|
15
22
|
readonly toolCallId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
16
23
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
17
24
|
readonly toolCalls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -37,6 +44,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
37
44
|
readonly message: import("effect/Schema").Struct<{
|
|
38
45
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"system">, import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"assistant">, import("effect/Schema").Literal<"tool">]>;
|
|
39
46
|
readonly content: import("effect/Schema").String;
|
|
47
|
+
readonly attachments: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
48
|
+
readonly id: import("effect/Schema").String;
|
|
49
|
+
readonly mediaType: import("effect/Schema").String;
|
|
50
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
51
|
+
readonly size: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
52
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
53
|
+
}>>>;
|
|
40
54
|
readonly toolCallId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
41
55
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
42
56
|
readonly toolCalls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -71,6 +85,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
71
85
|
readonly message: import("effect/Schema").Struct<{
|
|
72
86
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"system">, import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"assistant">, import("effect/Schema").Literal<"tool">]>;
|
|
73
87
|
readonly content: import("effect/Schema").String;
|
|
88
|
+
readonly attachments: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
89
|
+
readonly id: import("effect/Schema").String;
|
|
90
|
+
readonly mediaType: import("effect/Schema").String;
|
|
91
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
92
|
+
readonly size: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
93
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
94
|
+
}>>>;
|
|
74
95
|
readonly toolCallId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
75
96
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
76
97
|
readonly toolCalls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -85,6 +106,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
85
106
|
'session.message.submitted': import("effect/Schema").Struct<{
|
|
86
107
|
readonly messageId: import("effect/Schema").String;
|
|
87
108
|
readonly text: import("effect/Schema").String;
|
|
109
|
+
readonly attachments: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
110
|
+
readonly id: import("effect/Schema").String;
|
|
111
|
+
readonly mediaType: import("effect/Schema").String;
|
|
112
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
113
|
+
readonly size: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
114
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
115
|
+
}>>>;
|
|
88
116
|
readonly delivery: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"steer">, import("effect/Schema").Literal<"followUp">, import("effect/Schema").Literal<"nextTurn">]>>;
|
|
89
117
|
readonly activeChildThreadId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
90
118
|
}>;
|
|
@@ -204,6 +232,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
204
232
|
readonly messages: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
205
233
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"system">, import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"assistant">, import("effect/Schema").Literal<"tool">]>;
|
|
206
234
|
readonly content: import("effect/Schema").String;
|
|
235
|
+
readonly attachments: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
236
|
+
readonly id: import("effect/Schema").String;
|
|
237
|
+
readonly mediaType: import("effect/Schema").String;
|
|
238
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
239
|
+
readonly size: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
240
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
241
|
+
}>>>;
|
|
207
242
|
readonly toolCallId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
208
243
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
209
244
|
readonly toolCalls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -227,6 +262,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
227
262
|
readonly messages?: readonly {
|
|
228
263
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
229
264
|
readonly content: string;
|
|
265
|
+
readonly attachments?: readonly {
|
|
266
|
+
readonly id: string;
|
|
267
|
+
readonly mediaType: string;
|
|
268
|
+
readonly name?: string | undefined;
|
|
269
|
+
readonly size?: number | undefined;
|
|
270
|
+
readonly url?: string | undefined;
|
|
271
|
+
}[] | undefined;
|
|
230
272
|
readonly toolCallId?: string | undefined;
|
|
231
273
|
readonly name?: string | undefined;
|
|
232
274
|
readonly toolCalls?: {
|
|
@@ -250,6 +292,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
250
292
|
readonly messages?: readonly {
|
|
251
293
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
252
294
|
readonly content: string;
|
|
295
|
+
readonly attachments?: readonly {
|
|
296
|
+
readonly id: string;
|
|
297
|
+
readonly mediaType: string;
|
|
298
|
+
readonly name?: string | undefined;
|
|
299
|
+
readonly size?: number | undefined;
|
|
300
|
+
readonly url?: string | undefined;
|
|
301
|
+
}[] | undefined;
|
|
253
302
|
readonly toolCallId?: string | undefined;
|
|
254
303
|
readonly name?: string | undefined;
|
|
255
304
|
readonly toolCalls?: {
|
|
@@ -354,6 +403,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
354
403
|
readonly message: {
|
|
355
404
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
356
405
|
readonly content: string;
|
|
406
|
+
readonly attachments?: readonly {
|
|
407
|
+
readonly id: string;
|
|
408
|
+
readonly mediaType: string;
|
|
409
|
+
readonly name?: string | undefined;
|
|
410
|
+
readonly size?: number | undefined;
|
|
411
|
+
readonly url?: string | undefined;
|
|
412
|
+
}[] | undefined;
|
|
357
413
|
readonly toolCallId?: string | undefined;
|
|
358
414
|
readonly name?: string | undefined;
|
|
359
415
|
readonly toolCalls?: {
|
|
@@ -373,6 +429,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
373
429
|
readonly message: {
|
|
374
430
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
375
431
|
readonly content: string;
|
|
432
|
+
readonly attachments?: readonly {
|
|
433
|
+
readonly id: string;
|
|
434
|
+
readonly mediaType: string;
|
|
435
|
+
readonly name?: string | undefined;
|
|
436
|
+
readonly size?: number | undefined;
|
|
437
|
+
readonly url?: string | undefined;
|
|
438
|
+
}[] | undefined;
|
|
376
439
|
readonly toolCallId?: string | undefined;
|
|
377
440
|
readonly name?: string | undefined;
|
|
378
441
|
readonly toolCalls?: {
|
|
@@ -390,6 +453,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
390
453
|
readonly payload: {
|
|
391
454
|
readonly messageId: string;
|
|
392
455
|
readonly text: string;
|
|
456
|
+
readonly attachments?: readonly {
|
|
457
|
+
readonly id: string;
|
|
458
|
+
readonly mediaType: string;
|
|
459
|
+
readonly name?: string | undefined;
|
|
460
|
+
readonly size?: number | undefined;
|
|
461
|
+
readonly url?: string | undefined;
|
|
462
|
+
}[] | undefined;
|
|
393
463
|
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
394
464
|
readonly activeChildThreadId?: string | undefined;
|
|
395
465
|
};
|
|
@@ -431,6 +501,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
431
501
|
readonly message: {
|
|
432
502
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
433
503
|
readonly content: string;
|
|
504
|
+
readonly attachments?: readonly {
|
|
505
|
+
readonly id: string;
|
|
506
|
+
readonly mediaType: string;
|
|
507
|
+
readonly name?: string | undefined;
|
|
508
|
+
readonly size?: number | undefined;
|
|
509
|
+
readonly url?: string | undefined;
|
|
510
|
+
}[] | undefined;
|
|
434
511
|
readonly toolCallId?: string | undefined;
|
|
435
512
|
readonly name?: string | undefined;
|
|
436
513
|
readonly toolCalls?: {
|
|
@@ -756,6 +833,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
756
833
|
readonly messages?: readonly {
|
|
757
834
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
758
835
|
readonly content: string;
|
|
836
|
+
readonly attachments?: readonly {
|
|
837
|
+
readonly id: string;
|
|
838
|
+
readonly mediaType: string;
|
|
839
|
+
readonly name?: string | undefined;
|
|
840
|
+
readonly size?: number | undefined;
|
|
841
|
+
readonly url?: string | undefined;
|
|
842
|
+
}[] | undefined;
|
|
759
843
|
readonly toolCallId?: string | undefined;
|
|
760
844
|
readonly name?: string | undefined;
|
|
761
845
|
readonly toolCalls?: {
|
|
@@ -860,6 +944,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
860
944
|
readonly message: {
|
|
861
945
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
862
946
|
readonly content: string;
|
|
947
|
+
readonly attachments?: readonly {
|
|
948
|
+
readonly id: string;
|
|
949
|
+
readonly mediaType: string;
|
|
950
|
+
readonly name?: string | undefined;
|
|
951
|
+
readonly size?: number | undefined;
|
|
952
|
+
readonly url?: string | undefined;
|
|
953
|
+
}[] | undefined;
|
|
863
954
|
readonly toolCallId?: string | undefined;
|
|
864
955
|
readonly name?: string | undefined;
|
|
865
956
|
readonly toolCalls?: {
|
|
@@ -879,6 +970,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
879
970
|
readonly message: {
|
|
880
971
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
881
972
|
readonly content: string;
|
|
973
|
+
readonly attachments?: readonly {
|
|
974
|
+
readonly id: string;
|
|
975
|
+
readonly mediaType: string;
|
|
976
|
+
readonly name?: string | undefined;
|
|
977
|
+
readonly size?: number | undefined;
|
|
978
|
+
readonly url?: string | undefined;
|
|
979
|
+
}[] | undefined;
|
|
882
980
|
readonly toolCallId?: string | undefined;
|
|
883
981
|
readonly name?: string | undefined;
|
|
884
982
|
readonly toolCalls?: {
|
|
@@ -896,6 +994,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
896
994
|
readonly payload: {
|
|
897
995
|
readonly messageId: string;
|
|
898
996
|
readonly text: string;
|
|
997
|
+
readonly attachments?: readonly {
|
|
998
|
+
readonly id: string;
|
|
999
|
+
readonly mediaType: string;
|
|
1000
|
+
readonly name?: string | undefined;
|
|
1001
|
+
readonly size?: number | undefined;
|
|
1002
|
+
readonly url?: string | undefined;
|
|
1003
|
+
}[] | undefined;
|
|
899
1004
|
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
900
1005
|
readonly activeChildThreadId?: string | undefined;
|
|
901
1006
|
};
|
|
@@ -937,6 +1042,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
937
1042
|
readonly message: {
|
|
938
1043
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
939
1044
|
readonly content: string;
|
|
1045
|
+
readonly attachments?: readonly {
|
|
1046
|
+
readonly id: string;
|
|
1047
|
+
readonly mediaType: string;
|
|
1048
|
+
readonly name?: string | undefined;
|
|
1049
|
+
readonly size?: number | undefined;
|
|
1050
|
+
readonly url?: string | undefined;
|
|
1051
|
+
}[] | undefined;
|
|
940
1052
|
readonly toolCallId?: string | undefined;
|
|
941
1053
|
readonly name?: string | undefined;
|
|
942
1054
|
readonly toolCalls?: {
|
|
@@ -1248,6 +1360,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1248
1360
|
readonly lines: {
|
|
1249
1361
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
1250
1362
|
readonly content: string;
|
|
1363
|
+
readonly attachments?: readonly {
|
|
1364
|
+
readonly id: string;
|
|
1365
|
+
readonly mediaType: string;
|
|
1366
|
+
readonly name?: string | undefined;
|
|
1367
|
+
readonly size?: number | undefined;
|
|
1368
|
+
readonly url?: string | undefined;
|
|
1369
|
+
}[] | undefined;
|
|
1251
1370
|
readonly toolCallId?: string | undefined;
|
|
1252
1371
|
readonly name?: string | undefined;
|
|
1253
1372
|
readonly toolCalls?: {
|
|
@@ -1268,12 +1387,26 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1268
1387
|
}, import("effect/Context").Service.Any, {
|
|
1269
1388
|
userMessage: import("@swirls/looms/core").SignalDefinition<{
|
|
1270
1389
|
readonly content: string;
|
|
1390
|
+
readonly attachments?: readonly {
|
|
1391
|
+
readonly id: string;
|
|
1392
|
+
readonly mediaType: string;
|
|
1393
|
+
readonly name?: string | undefined;
|
|
1394
|
+
readonly size?: number | undefined;
|
|
1395
|
+
readonly url?: string | undefined;
|
|
1396
|
+
}[] | undefined;
|
|
1271
1397
|
}, Omit<EventInput, "payload" | "type"> & {
|
|
1272
1398
|
readonly type: "agent.message.received";
|
|
1273
1399
|
readonly payload: {
|
|
1274
1400
|
readonly message: {
|
|
1275
1401
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
1276
1402
|
readonly content: string;
|
|
1403
|
+
readonly attachments?: readonly {
|
|
1404
|
+
readonly id: string;
|
|
1405
|
+
readonly mediaType: string;
|
|
1406
|
+
readonly name?: string | undefined;
|
|
1407
|
+
readonly size?: number | undefined;
|
|
1408
|
+
readonly url?: string | undefined;
|
|
1409
|
+
}[] | undefined;
|
|
1277
1410
|
readonly toolCallId?: string | undefined;
|
|
1278
1411
|
readonly name?: string | undefined;
|
|
1279
1412
|
readonly toolCalls?: {
|
|
@@ -1286,6 +1419,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1286
1419
|
}>;
|
|
1287
1420
|
steer: import("@swirls/looms/core").SignalDefinition<{
|
|
1288
1421
|
readonly content: string;
|
|
1422
|
+
readonly attachments?: readonly {
|
|
1423
|
+
readonly id: string;
|
|
1424
|
+
readonly mediaType: string;
|
|
1425
|
+
readonly name?: string | undefined;
|
|
1426
|
+
readonly size?: number | undefined;
|
|
1427
|
+
readonly url?: string | undefined;
|
|
1428
|
+
}[] | undefined;
|
|
1289
1429
|
readonly interrupt?: boolean | undefined;
|
|
1290
1430
|
}, Omit<EventInput, "payload" | "type"> & {
|
|
1291
1431
|
readonly type: "agent.steered";
|
|
@@ -1295,6 +1435,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1295
1435
|
readonly message: {
|
|
1296
1436
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
1297
1437
|
readonly content: string;
|
|
1438
|
+
readonly attachments?: readonly {
|
|
1439
|
+
readonly id: string;
|
|
1440
|
+
readonly mediaType: string;
|
|
1441
|
+
readonly name?: string | undefined;
|
|
1442
|
+
readonly size?: number | undefined;
|
|
1443
|
+
readonly url?: string | undefined;
|
|
1444
|
+
}[] | undefined;
|
|
1298
1445
|
readonly toolCallId?: string | undefined;
|
|
1299
1446
|
readonly name?: string | undefined;
|
|
1300
1447
|
readonly toolCalls?: {
|
|
@@ -1313,6 +1460,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1313
1460
|
submitAgentMessage: import("@swirls/looms/core").SignalDefinition<{
|
|
1314
1461
|
readonly messageId: string;
|
|
1315
1462
|
readonly text: string;
|
|
1463
|
+
readonly attachments?: readonly {
|
|
1464
|
+
readonly id: string;
|
|
1465
|
+
readonly mediaType: string;
|
|
1466
|
+
readonly name?: string | undefined;
|
|
1467
|
+
readonly size?: number | undefined;
|
|
1468
|
+
readonly url?: string | undefined;
|
|
1469
|
+
}[] | undefined;
|
|
1316
1470
|
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
1317
1471
|
readonly activeChildThreadId?: string | undefined;
|
|
1318
1472
|
}, Omit<EventInput, "payload" | "type"> & {
|
|
@@ -1320,6 +1474,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1320
1474
|
readonly payload: {
|
|
1321
1475
|
readonly messageId: string;
|
|
1322
1476
|
readonly text: string;
|
|
1477
|
+
readonly attachments?: readonly {
|
|
1478
|
+
readonly id: string;
|
|
1479
|
+
readonly mediaType: string;
|
|
1480
|
+
readonly name?: string | undefined;
|
|
1481
|
+
readonly size?: number | undefined;
|
|
1482
|
+
readonly url?: string | undefined;
|
|
1483
|
+
}[] | undefined;
|
|
1323
1484
|
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
1324
1485
|
readonly activeChildThreadId?: string | undefined;
|
|
1325
1486
|
};
|
|
@@ -1338,6 +1499,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1338
1499
|
agentSessionMessageEvents: import("@swirls/looms/core").SignalDefinition<{
|
|
1339
1500
|
readonly messageId: string;
|
|
1340
1501
|
readonly text: string;
|
|
1502
|
+
readonly attachments?: readonly {
|
|
1503
|
+
readonly id: string;
|
|
1504
|
+
readonly mediaType: string;
|
|
1505
|
+
readonly name?: string | undefined;
|
|
1506
|
+
readonly size?: number | undefined;
|
|
1507
|
+
readonly url?: string | undefined;
|
|
1508
|
+
}[] | undefined;
|
|
1341
1509
|
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
1342
1510
|
readonly activeChildThreadId?: string | undefined;
|
|
1343
1511
|
}, ((Omit<EventInput, "payload" | "type"> & {
|
|
@@ -1345,6 +1513,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1345
1513
|
readonly payload: {
|
|
1346
1514
|
readonly messageId: string;
|
|
1347
1515
|
readonly text: string;
|
|
1516
|
+
readonly attachments?: readonly {
|
|
1517
|
+
readonly id: string;
|
|
1518
|
+
readonly mediaType: string;
|
|
1519
|
+
readonly name?: string | undefined;
|
|
1520
|
+
readonly size?: number | undefined;
|
|
1521
|
+
readonly url?: string | undefined;
|
|
1522
|
+
}[] | undefined;
|
|
1348
1523
|
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
1349
1524
|
readonly activeChildThreadId?: string | undefined;
|
|
1350
1525
|
};
|
|
@@ -1356,6 +1531,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1356
1531
|
readonly message: {
|
|
1357
1532
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
1358
1533
|
readonly content: string;
|
|
1534
|
+
readonly attachments?: readonly {
|
|
1535
|
+
readonly id: string;
|
|
1536
|
+
readonly mediaType: string;
|
|
1537
|
+
readonly name?: string | undefined;
|
|
1538
|
+
readonly size?: number | undefined;
|
|
1539
|
+
readonly url?: string | undefined;
|
|
1540
|
+
}[] | undefined;
|
|
1359
1541
|
readonly toolCallId?: string | undefined;
|
|
1360
1542
|
readonly name?: string | undefined;
|
|
1361
1543
|
readonly toolCalls?: {
|
|
@@ -1377,6 +1559,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1377
1559
|
readonly messages?: readonly {
|
|
1378
1560
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
1379
1561
|
readonly content: string;
|
|
1562
|
+
readonly attachments?: readonly {
|
|
1563
|
+
readonly id: string;
|
|
1564
|
+
readonly mediaType: string;
|
|
1565
|
+
readonly name?: string | undefined;
|
|
1566
|
+
readonly size?: number | undefined;
|
|
1567
|
+
readonly url?: string | undefined;
|
|
1568
|
+
}[] | undefined;
|
|
1380
1569
|
readonly toolCallId?: string | undefined;
|
|
1381
1570
|
readonly name?: string | undefined;
|
|
1382
1571
|
readonly toolCalls?: {
|
|
@@ -1400,6 +1589,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1400
1589
|
readonly messages?: readonly {
|
|
1401
1590
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
1402
1591
|
readonly content: string;
|
|
1592
|
+
readonly attachments?: readonly {
|
|
1593
|
+
readonly id: string;
|
|
1594
|
+
readonly mediaType: string;
|
|
1595
|
+
readonly name?: string | undefined;
|
|
1596
|
+
readonly size?: number | undefined;
|
|
1597
|
+
readonly url?: string | undefined;
|
|
1598
|
+
}[] | undefined;
|
|
1403
1599
|
readonly toolCallId?: string | undefined;
|
|
1404
1600
|
readonly name?: string | undefined;
|
|
1405
1601
|
readonly toolCalls?: {
|
|
@@ -1504,6 +1700,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1504
1700
|
readonly message: {
|
|
1505
1701
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
1506
1702
|
readonly content: string;
|
|
1703
|
+
readonly attachments?: readonly {
|
|
1704
|
+
readonly id: string;
|
|
1705
|
+
readonly mediaType: string;
|
|
1706
|
+
readonly name?: string | undefined;
|
|
1707
|
+
readonly size?: number | undefined;
|
|
1708
|
+
readonly url?: string | undefined;
|
|
1709
|
+
}[] | undefined;
|
|
1507
1710
|
readonly toolCallId?: string | undefined;
|
|
1508
1711
|
readonly name?: string | undefined;
|
|
1509
1712
|
readonly toolCalls?: {
|
|
@@ -1523,6 +1726,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1523
1726
|
readonly message: {
|
|
1524
1727
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
1525
1728
|
readonly content: string;
|
|
1729
|
+
readonly attachments?: readonly {
|
|
1730
|
+
readonly id: string;
|
|
1731
|
+
readonly mediaType: string;
|
|
1732
|
+
readonly name?: string | undefined;
|
|
1733
|
+
readonly size?: number | undefined;
|
|
1734
|
+
readonly url?: string | undefined;
|
|
1735
|
+
}[] | undefined;
|
|
1526
1736
|
readonly toolCallId?: string | undefined;
|
|
1527
1737
|
readonly name?: string | undefined;
|
|
1528
1738
|
readonly toolCalls?: {
|
|
@@ -1540,6 +1750,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1540
1750
|
readonly payload: {
|
|
1541
1751
|
readonly messageId: string;
|
|
1542
1752
|
readonly text: string;
|
|
1753
|
+
readonly attachments?: readonly {
|
|
1754
|
+
readonly id: string;
|
|
1755
|
+
readonly mediaType: string;
|
|
1756
|
+
readonly name?: string | undefined;
|
|
1757
|
+
readonly size?: number | undefined;
|
|
1758
|
+
readonly url?: string | undefined;
|
|
1759
|
+
}[] | undefined;
|
|
1543
1760
|
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
1544
1761
|
readonly activeChildThreadId?: string | undefined;
|
|
1545
1762
|
};
|
|
@@ -1581,6 +1798,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1581
1798
|
readonly message: {
|
|
1582
1799
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
1583
1800
|
readonly content: string;
|
|
1801
|
+
readonly attachments?: readonly {
|
|
1802
|
+
readonly id: string;
|
|
1803
|
+
readonly mediaType: string;
|
|
1804
|
+
readonly name?: string | undefined;
|
|
1805
|
+
readonly size?: number | undefined;
|
|
1806
|
+
readonly url?: string | undefined;
|
|
1807
|
+
}[] | undefined;
|
|
1584
1808
|
readonly toolCallId?: string | undefined;
|
|
1585
1809
|
readonly name?: string | undefined;
|
|
1586
1810
|
readonly toolCalls?: {
|
|
@@ -1906,6 +2130,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
1906
2130
|
readonly messages?: readonly {
|
|
1907
2131
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
1908
2132
|
readonly content: string;
|
|
2133
|
+
readonly attachments?: readonly {
|
|
2134
|
+
readonly id: string;
|
|
2135
|
+
readonly mediaType: string;
|
|
2136
|
+
readonly name?: string | undefined;
|
|
2137
|
+
readonly size?: number | undefined;
|
|
2138
|
+
readonly url?: string | undefined;
|
|
2139
|
+
}[] | undefined;
|
|
1909
2140
|
readonly toolCallId?: string | undefined;
|
|
1910
2141
|
readonly name?: string | undefined;
|
|
1911
2142
|
readonly toolCalls?: {
|
|
@@ -2010,6 +2241,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
2010
2241
|
readonly message: {
|
|
2011
2242
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
2012
2243
|
readonly content: string;
|
|
2244
|
+
readonly attachments?: readonly {
|
|
2245
|
+
readonly id: string;
|
|
2246
|
+
readonly mediaType: string;
|
|
2247
|
+
readonly name?: string | undefined;
|
|
2248
|
+
readonly size?: number | undefined;
|
|
2249
|
+
readonly url?: string | undefined;
|
|
2250
|
+
}[] | undefined;
|
|
2013
2251
|
readonly toolCallId?: string | undefined;
|
|
2014
2252
|
readonly name?: string | undefined;
|
|
2015
2253
|
readonly toolCalls?: {
|
|
@@ -2029,6 +2267,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
2029
2267
|
readonly message: {
|
|
2030
2268
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
2031
2269
|
readonly content: string;
|
|
2270
|
+
readonly attachments?: readonly {
|
|
2271
|
+
readonly id: string;
|
|
2272
|
+
readonly mediaType: string;
|
|
2273
|
+
readonly name?: string | undefined;
|
|
2274
|
+
readonly size?: number | undefined;
|
|
2275
|
+
readonly url?: string | undefined;
|
|
2276
|
+
}[] | undefined;
|
|
2032
2277
|
readonly toolCallId?: string | undefined;
|
|
2033
2278
|
readonly name?: string | undefined;
|
|
2034
2279
|
readonly toolCalls?: {
|
|
@@ -2046,6 +2291,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
2046
2291
|
readonly payload: {
|
|
2047
2292
|
readonly messageId: string;
|
|
2048
2293
|
readonly text: string;
|
|
2294
|
+
readonly attachments?: readonly {
|
|
2295
|
+
readonly id: string;
|
|
2296
|
+
readonly mediaType: string;
|
|
2297
|
+
readonly name?: string | undefined;
|
|
2298
|
+
readonly size?: number | undefined;
|
|
2299
|
+
readonly url?: string | undefined;
|
|
2300
|
+
}[] | undefined;
|
|
2049
2301
|
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
2050
2302
|
readonly activeChildThreadId?: string | undefined;
|
|
2051
2303
|
};
|
|
@@ -2087,6 +2339,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
2087
2339
|
readonly message: {
|
|
2088
2340
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
2089
2341
|
readonly content: string;
|
|
2342
|
+
readonly attachments?: readonly {
|
|
2343
|
+
readonly id: string;
|
|
2344
|
+
readonly mediaType: string;
|
|
2345
|
+
readonly name?: string | undefined;
|
|
2346
|
+
readonly size?: number | undefined;
|
|
2347
|
+
readonly url?: string | undefined;
|
|
2348
|
+
}[] | undefined;
|
|
2090
2349
|
readonly toolCallId?: string | undefined;
|
|
2091
2350
|
readonly name?: string | undefined;
|
|
2092
2351
|
readonly toolCalls?: {
|
|
@@ -2400,6 +2659,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
2400
2659
|
readonly lines: {
|
|
2401
2660
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
2402
2661
|
readonly content: string;
|
|
2662
|
+
readonly attachments?: readonly {
|
|
2663
|
+
readonly id: string;
|
|
2664
|
+
readonly mediaType: string;
|
|
2665
|
+
readonly name?: string | undefined;
|
|
2666
|
+
readonly size?: number | undefined;
|
|
2667
|
+
readonly url?: string | undefined;
|
|
2668
|
+
}[] | undefined;
|
|
2403
2669
|
readonly toolCallId?: string | undefined;
|
|
2404
2670
|
readonly name?: string | undefined;
|
|
2405
2671
|
readonly toolCalls?: {
|
|
@@ -2421,12 +2687,26 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
2421
2687
|
readonly signals: {
|
|
2422
2688
|
userMessage: import("@swirls/looms/core").SignalDefinition<{
|
|
2423
2689
|
readonly content: string;
|
|
2690
|
+
readonly attachments?: readonly {
|
|
2691
|
+
readonly id: string;
|
|
2692
|
+
readonly mediaType: string;
|
|
2693
|
+
readonly name?: string | undefined;
|
|
2694
|
+
readonly size?: number | undefined;
|
|
2695
|
+
readonly url?: string | undefined;
|
|
2696
|
+
}[] | undefined;
|
|
2424
2697
|
}, Omit<EventInput, "payload" | "type"> & {
|
|
2425
2698
|
readonly type: "agent.message.received";
|
|
2426
2699
|
readonly payload: {
|
|
2427
2700
|
readonly message: {
|
|
2428
2701
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
2429
2702
|
readonly content: string;
|
|
2703
|
+
readonly attachments?: readonly {
|
|
2704
|
+
readonly id: string;
|
|
2705
|
+
readonly mediaType: string;
|
|
2706
|
+
readonly name?: string | undefined;
|
|
2707
|
+
readonly size?: number | undefined;
|
|
2708
|
+
readonly url?: string | undefined;
|
|
2709
|
+
}[] | undefined;
|
|
2430
2710
|
readonly toolCallId?: string | undefined;
|
|
2431
2711
|
readonly name?: string | undefined;
|
|
2432
2712
|
readonly toolCalls?: {
|
|
@@ -2439,6 +2719,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
2439
2719
|
}>;
|
|
2440
2720
|
steer: import("@swirls/looms/core").SignalDefinition<{
|
|
2441
2721
|
readonly content: string;
|
|
2722
|
+
readonly attachments?: readonly {
|
|
2723
|
+
readonly id: string;
|
|
2724
|
+
readonly mediaType: string;
|
|
2725
|
+
readonly name?: string | undefined;
|
|
2726
|
+
readonly size?: number | undefined;
|
|
2727
|
+
readonly url?: string | undefined;
|
|
2728
|
+
}[] | undefined;
|
|
2442
2729
|
readonly interrupt?: boolean | undefined;
|
|
2443
2730
|
}, Omit<EventInput, "payload" | "type"> & {
|
|
2444
2731
|
readonly type: "agent.steered";
|
|
@@ -2448,6 +2735,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
2448
2735
|
readonly message: {
|
|
2449
2736
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
2450
2737
|
readonly content: string;
|
|
2738
|
+
readonly attachments?: readonly {
|
|
2739
|
+
readonly id: string;
|
|
2740
|
+
readonly mediaType: string;
|
|
2741
|
+
readonly name?: string | undefined;
|
|
2742
|
+
readonly size?: number | undefined;
|
|
2743
|
+
readonly url?: string | undefined;
|
|
2744
|
+
}[] | undefined;
|
|
2451
2745
|
readonly toolCallId?: string | undefined;
|
|
2452
2746
|
readonly name?: string | undefined;
|
|
2453
2747
|
readonly toolCalls?: {
|
|
@@ -2466,6 +2760,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
2466
2760
|
submitAgentMessage: import("@swirls/looms/core").SignalDefinition<{
|
|
2467
2761
|
readonly messageId: string;
|
|
2468
2762
|
readonly text: string;
|
|
2763
|
+
readonly attachments?: readonly {
|
|
2764
|
+
readonly id: string;
|
|
2765
|
+
readonly mediaType: string;
|
|
2766
|
+
readonly name?: string | undefined;
|
|
2767
|
+
readonly size?: number | undefined;
|
|
2768
|
+
readonly url?: string | undefined;
|
|
2769
|
+
}[] | undefined;
|
|
2469
2770
|
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
2470
2771
|
readonly activeChildThreadId?: string | undefined;
|
|
2471
2772
|
}, Omit<EventInput, "payload" | "type"> & {
|
|
@@ -2473,6 +2774,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
2473
2774
|
readonly payload: {
|
|
2474
2775
|
readonly messageId: string;
|
|
2475
2776
|
readonly text: string;
|
|
2777
|
+
readonly attachments?: readonly {
|
|
2778
|
+
readonly id: string;
|
|
2779
|
+
readonly mediaType: string;
|
|
2780
|
+
readonly name?: string | undefined;
|
|
2781
|
+
readonly size?: number | undefined;
|
|
2782
|
+
readonly url?: string | undefined;
|
|
2783
|
+
}[] | undefined;
|
|
2476
2784
|
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
2477
2785
|
readonly activeChildThreadId?: string | undefined;
|
|
2478
2786
|
};
|
|
@@ -2491,6 +2799,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
2491
2799
|
agentSessionMessageEvents: import("@swirls/looms/core").SignalDefinition<{
|
|
2492
2800
|
readonly messageId: string;
|
|
2493
2801
|
readonly text: string;
|
|
2802
|
+
readonly attachments?: readonly {
|
|
2803
|
+
readonly id: string;
|
|
2804
|
+
readonly mediaType: string;
|
|
2805
|
+
readonly name?: string | undefined;
|
|
2806
|
+
readonly size?: number | undefined;
|
|
2807
|
+
readonly url?: string | undefined;
|
|
2808
|
+
}[] | undefined;
|
|
2494
2809
|
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
2495
2810
|
readonly activeChildThreadId?: string | undefined;
|
|
2496
2811
|
}, ((Omit<EventInput, "payload" | "type"> & {
|
|
@@ -2498,6 +2813,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
2498
2813
|
readonly payload: {
|
|
2499
2814
|
readonly messageId: string;
|
|
2500
2815
|
readonly text: string;
|
|
2816
|
+
readonly attachments?: readonly {
|
|
2817
|
+
readonly id: string;
|
|
2818
|
+
readonly mediaType: string;
|
|
2819
|
+
readonly name?: string | undefined;
|
|
2820
|
+
readonly size?: number | undefined;
|
|
2821
|
+
readonly url?: string | undefined;
|
|
2822
|
+
}[] | undefined;
|
|
2501
2823
|
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
2502
2824
|
readonly activeChildThreadId?: string | undefined;
|
|
2503
2825
|
};
|
|
@@ -2509,6 +2831,13 @@ export declare function agent(options?: AgentModuleOptions): import("@swirls/loo
|
|
|
2509
2831
|
readonly message: {
|
|
2510
2832
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
2511
2833
|
readonly content: string;
|
|
2834
|
+
readonly attachments?: readonly {
|
|
2835
|
+
readonly id: string;
|
|
2836
|
+
readonly mediaType: string;
|
|
2837
|
+
readonly name?: string | undefined;
|
|
2838
|
+
readonly size?: number | undefined;
|
|
2839
|
+
readonly url?: string | undefined;
|
|
2840
|
+
}[] | undefined;
|
|
2512
2841
|
readonly toolCallId?: string | undefined;
|
|
2513
2842
|
readonly name?: string | undefined;
|
|
2514
2843
|
readonly toolCalls?: {
|
|
@@ -2,6 +2,13 @@ export declare const conversation: import("@swirls/looms/core").ProjectionDefini
|
|
|
2
2
|
readonly lines: {
|
|
3
3
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
4
4
|
readonly content: string;
|
|
5
|
+
readonly attachments?: readonly {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly mediaType: string;
|
|
8
|
+
readonly name?: string | undefined;
|
|
9
|
+
readonly size?: number | undefined;
|
|
10
|
+
readonly url?: string | undefined;
|
|
11
|
+
}[] | undefined;
|
|
5
12
|
readonly toolCallId?: string | undefined;
|
|
6
13
|
readonly name?: string | undefined;
|
|
7
14
|
readonly toolCalls?: {
|