@linnlabs/linnkit 0.41.0 → 0.43.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/cli.cjs +17 -202
  3. package/dist/cli.cjs.map +1 -1
  4. package/dist/cli.js +17 -202
  5. package/dist/cli.js.map +1 -1
  6. package/dist/context-manager.cjs +0 -1
  7. package/dist/context-manager.cjs.map +1 -1
  8. package/dist/context-manager.js +0 -1
  9. package/dist/context-manager.js.map +1 -1
  10. package/dist/contracts/agentSpec.d.cts +5 -5
  11. package/dist/contracts/agentSpec.d.ts +5 -5
  12. package/dist/contracts/audit.d.cts +10 -10
  13. package/dist/contracts/audit.d.ts +10 -10
  14. package/dist/contracts/contextPolicy.d.cts +14 -14
  15. package/dist/contracts/contextPolicy.d.ts +14 -14
  16. package/dist/contracts/events.d.cts +117 -117
  17. package/dist/contracts/events.d.ts +117 -117
  18. package/dist/contracts/execution.d.cts +2 -2
  19. package/dist/contracts/execution.d.ts +2 -2
  20. package/dist/contracts/llm-retry.d.cts +2 -2
  21. package/dist/contracts/llm-retry.d.ts +2 -2
  22. package/dist/contracts/messages.d.cts +32 -32
  23. package/dist/contracts/messages.d.ts +32 -32
  24. package/dist/contracts/sse.d.cts +97 -97
  25. package/dist/contracts/sse.d.ts +97 -97
  26. package/dist/contracts/sub-run-trace-payload.d.cts +8 -8
  27. package/dist/contracts/sub-run-trace-payload.d.ts +8 -8
  28. package/dist/contracts/token-accounting.d.cts +12 -12
  29. package/dist/contracts/token-accounting.d.ts +12 -12
  30. package/dist/index.cjs +18 -212
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.js +18 -212
  33. package/dist/index.js.map +1 -1
  34. package/dist/quickstart.cjs +17 -202
  35. package/dist/quickstart.cjs.map +1 -1
  36. package/dist/quickstart.js +17 -202
  37. package/dist/quickstart.js.map +1 -1
  38. package/dist/runtime-kernel/child-runs/childRunInvoker.d.cts +1 -3
  39. package/dist/runtime-kernel/child-runs/childRunInvoker.d.ts +1 -3
  40. package/dist/runtime-kernel/events/agentEvents.d.cts +2 -2
  41. package/dist/runtime-kernel/events/agentEvents.d.ts +2 -2
  42. package/dist/runtime-kernel/graph-engine/engine.d.cts +1 -0
  43. package/dist/runtime-kernel/graph-engine/engine.d.ts +1 -0
  44. package/dist/runtime-kernel/graph-engine/nodes/toolNode.d.cts +1 -3
  45. package/dist/runtime-kernel/graph-engine/nodes/toolNode.d.ts +1 -3
  46. package/dist/runtime-kernel/testkit/defaultGraphExecutor.d.cts +1 -2
  47. package/dist/runtime-kernel/testkit/defaultGraphExecutor.d.ts +1 -2
  48. package/dist/runtime-kernel/testkit/graphLoopHarness.d.cts +1 -2
  49. package/dist/runtime-kernel/testkit/graphLoopHarness.d.ts +1 -2
  50. package/dist/runtime-kernel/tools/index.d.cts +1 -2
  51. package/dist/runtime-kernel/tools/index.d.ts +1 -2
  52. package/dist/runtime-kernel/tools/model-input/orchestration/resolveToolModelInput.d.cts +4 -3
  53. package/dist/runtime-kernel/tools/model-input/orchestration/resolveToolModelInput.d.ts +4 -3
  54. package/dist/runtime-kernel/tools/ports.d.cts +1 -28
  55. package/dist/runtime-kernel/tools/ports.d.ts +1 -28
  56. package/dist/runtime-kernel/tools/toolContextRuntime.d.cts +1 -1
  57. package/dist/runtime-kernel/tools/toolContextRuntime.d.ts +1 -1
  58. package/dist/runtime-kernel/tools/toolContracts.d.cts +0 -6
  59. package/dist/runtime-kernel/tools/toolContracts.d.ts +0 -6
  60. package/dist/runtime-kernel/tools/toolExecutionContext.d.cts +0 -7
  61. package/dist/runtime-kernel/tools/toolExecutionContext.d.ts +0 -7
  62. package/dist/runtime-kernel.cjs +17 -207
  63. package/dist/runtime-kernel.cjs.map +1 -1
  64. package/dist/runtime-kernel.d.cts +1 -2
  65. package/dist/runtime-kernel.d.ts +1 -2
  66. package/dist/runtime-kernel.js +17 -207
  67. package/dist/runtime-kernel.js.map +1 -1
  68. package/dist/testkit/agent-harness/scriptedInferenceHarness.d.cts +1 -1
  69. package/dist/testkit/agent-harness/scriptedInferenceHarness.d.ts +1 -1
  70. package/dist/testkit.cjs +17 -207
  71. package/dist/testkit.cjs.map +1 -1
  72. package/dist/testkit.js +17 -207
  73. package/dist/testkit.js.map +1 -1
  74. package/docs/integration/tool-development-guide.md +8 -23
  75. package/docs/integration/tools.md +2 -5
  76. package/package.json +2 -2
  77. package/dist/runtime-kernel/tools/model-input/definitions/toolModelInputPolicy.d.cts +0 -17
  78. package/dist/runtime-kernel/tools/model-input/definitions/toolModelInputPolicy.d.ts +0 -17
@@ -11,8 +11,8 @@ declare const EventEnvelopeSchema: z.ZodObject<{
11
11
  payload: z.ZodUnknown;
12
12
  render_hint: z.ZodOptional<z.ZodObject<{
13
13
  card: z.ZodOptional<z.ZodEnum<{
14
- none: "none";
15
14
  image: "image";
15
+ none: "none";
16
16
  normal: "normal";
17
17
  collapsible: "collapsible";
18
18
  interactive: "interactive";
@@ -42,8 +42,8 @@ declare const EventEnvelope: z.ZodObject<{
42
42
  payload: z.ZodUnknown;
43
43
  render_hint: z.ZodOptional<z.ZodObject<{
44
44
  card: z.ZodOptional<z.ZodEnum<{
45
- none: "none";
46
45
  image: "image";
46
+ none: "none";
47
47
  normal: "normal";
48
48
  collapsible: "collapsible";
49
49
  interactive: "interactive";
@@ -11,8 +11,8 @@ declare const EventEnvelopeSchema: z.ZodObject<{
11
11
  payload: z.ZodUnknown;
12
12
  render_hint: z.ZodOptional<z.ZodObject<{
13
13
  card: z.ZodOptional<z.ZodEnum<{
14
- none: "none";
15
14
  image: "image";
15
+ none: "none";
16
16
  normal: "normal";
17
17
  collapsible: "collapsible";
18
18
  interactive: "interactive";
@@ -42,8 +42,8 @@ declare const EventEnvelope: z.ZodObject<{
42
42
  payload: z.ZodUnknown;
43
43
  render_hint: z.ZodOptional<z.ZodObject<{
44
44
  card: z.ZodOptional<z.ZodEnum<{
45
- none: "none";
46
45
  image: "image";
46
+ none: "none";
47
47
  normal: "normal";
48
48
  collapsible: "collapsible";
49
49
  interactive: "interactive";
@@ -12,12 +12,12 @@ type LlmRetryCategory = z.infer<typeof LlmRetryCategory>;
12
12
  declare const LlmRetryState: z.ZodObject<{
13
13
  retry_id: z.ZodString;
14
14
  status: z.ZodEnum<{
15
+ failed: "failed";
16
+ cancelled: "cancelled";
15
17
  waiting: "waiting";
16
18
  retrying: "retrying";
17
19
  succeeded: "succeeded";
18
20
  exhausted: "exhausted";
19
- failed: "failed";
20
- cancelled: "cancelled";
21
21
  }>;
22
22
  category: z.ZodEnum<{
23
23
  output: "output";
@@ -12,12 +12,12 @@ type LlmRetryCategory = z.infer<typeof LlmRetryCategory>;
12
12
  declare const LlmRetryState: z.ZodObject<{
13
13
  retry_id: z.ZodString;
14
14
  status: z.ZodEnum<{
15
+ failed: "failed";
16
+ cancelled: "cancelled";
15
17
  waiting: "waiting";
16
18
  retrying: "retrying";
17
19
  succeeded: "succeeded";
18
20
  exhausted: "exhausted";
19
- failed: "failed";
20
- cancelled: "cancelled";
21
21
  }>;
22
22
  category: z.ZodEnum<{
23
23
  output: "output";
@@ -113,10 +113,10 @@ declare const TaskTrackingMeta: z.ZodObject<{
113
113
  taskType: z.ZodOptional<z.ZodString>;
114
114
  taskId: z.ZodOptional<z.ZodString>;
115
115
  taskStatus: z.ZodOptional<z.ZodEnum<{
116
- failed: "failed";
117
116
  requested: "requested";
118
- completed: "completed";
119
117
  in_progress: "in_progress";
118
+ completed: "completed";
119
+ failed: "failed";
120
120
  }>>;
121
121
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
122
122
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -216,10 +216,10 @@ declare const PersistentMetadata: z.ZodObject<{
216
216
  taskType: z.ZodOptional<z.ZodString>;
217
217
  taskId: z.ZodOptional<z.ZodString>;
218
218
  taskStatus: z.ZodOptional<z.ZodEnum<{
219
- failed: "failed";
220
219
  requested: "requested";
221
- completed: "completed";
222
220
  in_progress: "in_progress";
221
+ completed: "completed";
222
+ failed: "failed";
223
223
  }>>;
224
224
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
225
225
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -326,10 +326,10 @@ declare const SystemMessage: z.ZodObject<{
326
326
  taskType: z.ZodOptional<z.ZodString>;
327
327
  taskId: z.ZodOptional<z.ZodString>;
328
328
  taskStatus: z.ZodOptional<z.ZodEnum<{
329
- failed: "failed";
330
329
  requested: "requested";
331
- completed: "completed";
332
330
  in_progress: "in_progress";
331
+ completed: "completed";
332
+ failed: "failed";
333
333
  }>>;
334
334
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
335
335
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -344,8 +344,8 @@ declare const SystemMessage: z.ZodObject<{
344
344
  }, z.core.$loose>>;
345
345
  role: z.ZodLiteral<"system">;
346
346
  type: z.ZodEnum<{
347
- history_summary: "history_summary";
348
347
  system_prompt: "system_prompt";
348
+ history_summary: "history_summary";
349
349
  context_injection: "context_injection";
350
350
  }>;
351
351
  }, z.core.$strip>;
@@ -443,10 +443,10 @@ declare const UserMessage: z.ZodUnion<readonly [z.ZodObject<{
443
443
  taskType: z.ZodOptional<z.ZodString>;
444
444
  taskId: z.ZodOptional<z.ZodString>;
445
445
  taskStatus: z.ZodOptional<z.ZodEnum<{
446
- failed: "failed";
447
446
  requested: "requested";
448
- completed: "completed";
449
447
  in_progress: "in_progress";
448
+ completed: "completed";
449
+ failed: "failed";
450
450
  }>>;
451
451
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
452
452
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -570,10 +570,10 @@ declare const UserMessage: z.ZodUnion<readonly [z.ZodObject<{
570
570
  taskType: z.ZodOptional<z.ZodString>;
571
571
  taskId: z.ZodOptional<z.ZodString>;
572
572
  taskStatus: z.ZodOptional<z.ZodEnum<{
573
- failed: "failed";
574
573
  requested: "requested";
575
- completed: "completed";
576
574
  in_progress: "in_progress";
575
+ completed: "completed";
576
+ failed: "failed";
577
577
  }>>;
578
578
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
579
579
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -686,10 +686,10 @@ declare const AssistantMessage: z.ZodObject<{
686
686
  taskType: z.ZodOptional<z.ZodString>;
687
687
  taskId: z.ZodOptional<z.ZodString>;
688
688
  taskStatus: z.ZodOptional<z.ZodEnum<{
689
- failed: "failed";
690
689
  requested: "requested";
691
- completed: "completed";
692
690
  in_progress: "in_progress";
691
+ completed: "completed";
692
+ failed: "failed";
693
693
  }>>;
694
694
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
695
695
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -704,8 +704,8 @@ declare const AssistantMessage: z.ZodObject<{
704
704
  }, z.core.$loose>>;
705
705
  role: z.ZodLiteral<"assistant">;
706
706
  type: z.ZodEnum<{
707
- thought: "thought";
708
707
  tool_calls: "tool_calls";
708
+ thought: "thought";
709
709
  final_answer: "final_answer";
710
710
  tool_code: "tool_code";
711
711
  task_completion: "task_completion";
@@ -805,10 +805,10 @@ declare const ToolMessage: z.ZodObject<{
805
805
  taskType: z.ZodOptional<z.ZodString>;
806
806
  taskId: z.ZodOptional<z.ZodString>;
807
807
  taskStatus: z.ZodOptional<z.ZodEnum<{
808
- failed: "failed";
809
808
  requested: "requested";
810
- completed: "completed";
811
809
  in_progress: "in_progress";
810
+ completed: "completed";
811
+ failed: "failed";
812
812
  }>>;
813
813
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
814
814
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -934,10 +934,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
934
934
  taskType: z.ZodOptional<z.ZodString>;
935
935
  taskId: z.ZodOptional<z.ZodString>;
936
936
  taskStatus: z.ZodOptional<z.ZodEnum<{
937
- failed: "failed";
938
937
  requested: "requested";
939
- completed: "completed";
940
938
  in_progress: "in_progress";
939
+ completed: "completed";
940
+ failed: "failed";
941
941
  }>>;
942
942
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
943
943
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -952,8 +952,8 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
952
952
  }, z.core.$loose>>;
953
953
  role: z.ZodLiteral<"system">;
954
954
  type: z.ZodEnum<{
955
- history_summary: "history_summary";
956
955
  system_prompt: "system_prompt";
956
+ history_summary: "history_summary";
957
957
  context_injection: "context_injection";
958
958
  }>;
959
959
  }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
@@ -1049,10 +1049,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1049
1049
  taskType: z.ZodOptional<z.ZodString>;
1050
1050
  taskId: z.ZodOptional<z.ZodString>;
1051
1051
  taskStatus: z.ZodOptional<z.ZodEnum<{
1052
- failed: "failed";
1053
1052
  requested: "requested";
1054
- completed: "completed";
1055
1053
  in_progress: "in_progress";
1054
+ completed: "completed";
1055
+ failed: "failed";
1056
1056
  }>>;
1057
1057
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1058
1058
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -1176,10 +1176,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1176
1176
  taskType: z.ZodOptional<z.ZodString>;
1177
1177
  taskId: z.ZodOptional<z.ZodString>;
1178
1178
  taskStatus: z.ZodOptional<z.ZodEnum<{
1179
- failed: "failed";
1180
1179
  requested: "requested";
1181
- completed: "completed";
1182
1180
  in_progress: "in_progress";
1181
+ completed: "completed";
1182
+ failed: "failed";
1183
1183
  }>>;
1184
1184
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1185
1185
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -1290,10 +1290,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1290
1290
  taskType: z.ZodOptional<z.ZodString>;
1291
1291
  taskId: z.ZodOptional<z.ZodString>;
1292
1292
  taskStatus: z.ZodOptional<z.ZodEnum<{
1293
- failed: "failed";
1294
1293
  requested: "requested";
1295
- completed: "completed";
1296
1294
  in_progress: "in_progress";
1295
+ completed: "completed";
1296
+ failed: "failed";
1297
1297
  }>>;
1298
1298
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1299
1299
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -1308,8 +1308,8 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1308
1308
  }, z.core.$loose>>;
1309
1309
  role: z.ZodLiteral<"assistant">;
1310
1310
  type: z.ZodEnum<{
1311
- thought: "thought";
1312
1311
  tool_calls: "tool_calls";
1312
+ thought: "thought";
1313
1313
  final_answer: "final_answer";
1314
1314
  tool_code: "tool_code";
1315
1315
  task_completion: "task_completion";
@@ -1407,10 +1407,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1407
1407
  taskType: z.ZodOptional<z.ZodString>;
1408
1408
  taskId: z.ZodOptional<z.ZodString>;
1409
1409
  taskStatus: z.ZodOptional<z.ZodEnum<{
1410
- failed: "failed";
1411
1410
  requested: "requested";
1412
- completed: "completed";
1413
1411
  in_progress: "in_progress";
1412
+ completed: "completed";
1413
+ failed: "failed";
1414
1414
  }>>;
1415
1415
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1416
1416
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -1538,10 +1538,10 @@ declare const UserInputMessage: z.ZodObject<{
1538
1538
  taskType: z.ZodOptional<z.ZodString>;
1539
1539
  taskId: z.ZodOptional<z.ZodString>;
1540
1540
  taskStatus: z.ZodOptional<z.ZodEnum<{
1541
- failed: "failed";
1542
1541
  requested: "requested";
1543
- completed: "completed";
1544
1542
  in_progress: "in_progress";
1543
+ completed: "completed";
1544
+ failed: "failed";
1545
1545
  }>>;
1546
1546
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1547
1547
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -1669,10 +1669,10 @@ declare const UserContextMessage: z.ZodObject<{
1669
1669
  taskType: z.ZodOptional<z.ZodString>;
1670
1670
  taskId: z.ZodOptional<z.ZodString>;
1671
1671
  taskStatus: z.ZodOptional<z.ZodEnum<{
1672
- failed: "failed";
1673
1672
  requested: "requested";
1674
- completed: "completed";
1675
1673
  in_progress: "in_progress";
1674
+ completed: "completed";
1675
+ failed: "failed";
1676
1676
  }>>;
1677
1677
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1678
1678
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -113,10 +113,10 @@ declare const TaskTrackingMeta: z.ZodObject<{
113
113
  taskType: z.ZodOptional<z.ZodString>;
114
114
  taskId: z.ZodOptional<z.ZodString>;
115
115
  taskStatus: z.ZodOptional<z.ZodEnum<{
116
- failed: "failed";
117
116
  requested: "requested";
118
- completed: "completed";
119
117
  in_progress: "in_progress";
118
+ completed: "completed";
119
+ failed: "failed";
120
120
  }>>;
121
121
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
122
122
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -216,10 +216,10 @@ declare const PersistentMetadata: z.ZodObject<{
216
216
  taskType: z.ZodOptional<z.ZodString>;
217
217
  taskId: z.ZodOptional<z.ZodString>;
218
218
  taskStatus: z.ZodOptional<z.ZodEnum<{
219
- failed: "failed";
220
219
  requested: "requested";
221
- completed: "completed";
222
220
  in_progress: "in_progress";
221
+ completed: "completed";
222
+ failed: "failed";
223
223
  }>>;
224
224
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
225
225
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -326,10 +326,10 @@ declare const SystemMessage: z.ZodObject<{
326
326
  taskType: z.ZodOptional<z.ZodString>;
327
327
  taskId: z.ZodOptional<z.ZodString>;
328
328
  taskStatus: z.ZodOptional<z.ZodEnum<{
329
- failed: "failed";
330
329
  requested: "requested";
331
- completed: "completed";
332
330
  in_progress: "in_progress";
331
+ completed: "completed";
332
+ failed: "failed";
333
333
  }>>;
334
334
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
335
335
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -344,8 +344,8 @@ declare const SystemMessage: z.ZodObject<{
344
344
  }, z.core.$loose>>;
345
345
  role: z.ZodLiteral<"system">;
346
346
  type: z.ZodEnum<{
347
- history_summary: "history_summary";
348
347
  system_prompt: "system_prompt";
348
+ history_summary: "history_summary";
349
349
  context_injection: "context_injection";
350
350
  }>;
351
351
  }, z.core.$strip>;
@@ -443,10 +443,10 @@ declare const UserMessage: z.ZodUnion<readonly [z.ZodObject<{
443
443
  taskType: z.ZodOptional<z.ZodString>;
444
444
  taskId: z.ZodOptional<z.ZodString>;
445
445
  taskStatus: z.ZodOptional<z.ZodEnum<{
446
- failed: "failed";
447
446
  requested: "requested";
448
- completed: "completed";
449
447
  in_progress: "in_progress";
448
+ completed: "completed";
449
+ failed: "failed";
450
450
  }>>;
451
451
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
452
452
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -570,10 +570,10 @@ declare const UserMessage: z.ZodUnion<readonly [z.ZodObject<{
570
570
  taskType: z.ZodOptional<z.ZodString>;
571
571
  taskId: z.ZodOptional<z.ZodString>;
572
572
  taskStatus: z.ZodOptional<z.ZodEnum<{
573
- failed: "failed";
574
573
  requested: "requested";
575
- completed: "completed";
576
574
  in_progress: "in_progress";
575
+ completed: "completed";
576
+ failed: "failed";
577
577
  }>>;
578
578
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
579
579
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -686,10 +686,10 @@ declare const AssistantMessage: z.ZodObject<{
686
686
  taskType: z.ZodOptional<z.ZodString>;
687
687
  taskId: z.ZodOptional<z.ZodString>;
688
688
  taskStatus: z.ZodOptional<z.ZodEnum<{
689
- failed: "failed";
690
689
  requested: "requested";
691
- completed: "completed";
692
690
  in_progress: "in_progress";
691
+ completed: "completed";
692
+ failed: "failed";
693
693
  }>>;
694
694
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
695
695
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -704,8 +704,8 @@ declare const AssistantMessage: z.ZodObject<{
704
704
  }, z.core.$loose>>;
705
705
  role: z.ZodLiteral<"assistant">;
706
706
  type: z.ZodEnum<{
707
- thought: "thought";
708
707
  tool_calls: "tool_calls";
708
+ thought: "thought";
709
709
  final_answer: "final_answer";
710
710
  tool_code: "tool_code";
711
711
  task_completion: "task_completion";
@@ -805,10 +805,10 @@ declare const ToolMessage: z.ZodObject<{
805
805
  taskType: z.ZodOptional<z.ZodString>;
806
806
  taskId: z.ZodOptional<z.ZodString>;
807
807
  taskStatus: z.ZodOptional<z.ZodEnum<{
808
- failed: "failed";
809
808
  requested: "requested";
810
- completed: "completed";
811
809
  in_progress: "in_progress";
810
+ completed: "completed";
811
+ failed: "failed";
812
812
  }>>;
813
813
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
814
814
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -934,10 +934,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
934
934
  taskType: z.ZodOptional<z.ZodString>;
935
935
  taskId: z.ZodOptional<z.ZodString>;
936
936
  taskStatus: z.ZodOptional<z.ZodEnum<{
937
- failed: "failed";
938
937
  requested: "requested";
939
- completed: "completed";
940
938
  in_progress: "in_progress";
939
+ completed: "completed";
940
+ failed: "failed";
941
941
  }>>;
942
942
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
943
943
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -952,8 +952,8 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
952
952
  }, z.core.$loose>>;
953
953
  role: z.ZodLiteral<"system">;
954
954
  type: z.ZodEnum<{
955
- history_summary: "history_summary";
956
955
  system_prompt: "system_prompt";
956
+ history_summary: "history_summary";
957
957
  context_injection: "context_injection";
958
958
  }>;
959
959
  }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
@@ -1049,10 +1049,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1049
1049
  taskType: z.ZodOptional<z.ZodString>;
1050
1050
  taskId: z.ZodOptional<z.ZodString>;
1051
1051
  taskStatus: z.ZodOptional<z.ZodEnum<{
1052
- failed: "failed";
1053
1052
  requested: "requested";
1054
- completed: "completed";
1055
1053
  in_progress: "in_progress";
1054
+ completed: "completed";
1055
+ failed: "failed";
1056
1056
  }>>;
1057
1057
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1058
1058
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -1176,10 +1176,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1176
1176
  taskType: z.ZodOptional<z.ZodString>;
1177
1177
  taskId: z.ZodOptional<z.ZodString>;
1178
1178
  taskStatus: z.ZodOptional<z.ZodEnum<{
1179
- failed: "failed";
1180
1179
  requested: "requested";
1181
- completed: "completed";
1182
1180
  in_progress: "in_progress";
1181
+ completed: "completed";
1182
+ failed: "failed";
1183
1183
  }>>;
1184
1184
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1185
1185
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -1290,10 +1290,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1290
1290
  taskType: z.ZodOptional<z.ZodString>;
1291
1291
  taskId: z.ZodOptional<z.ZodString>;
1292
1292
  taskStatus: z.ZodOptional<z.ZodEnum<{
1293
- failed: "failed";
1294
1293
  requested: "requested";
1295
- completed: "completed";
1296
1294
  in_progress: "in_progress";
1295
+ completed: "completed";
1296
+ failed: "failed";
1297
1297
  }>>;
1298
1298
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1299
1299
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -1308,8 +1308,8 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1308
1308
  }, z.core.$loose>>;
1309
1309
  role: z.ZodLiteral<"assistant">;
1310
1310
  type: z.ZodEnum<{
1311
- thought: "thought";
1312
1311
  tool_calls: "tool_calls";
1312
+ thought: "thought";
1313
1313
  final_answer: "final_answer";
1314
1314
  tool_code: "tool_code";
1315
1315
  task_completion: "task_completion";
@@ -1407,10 +1407,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1407
1407
  taskType: z.ZodOptional<z.ZodString>;
1408
1408
  taskId: z.ZodOptional<z.ZodString>;
1409
1409
  taskStatus: z.ZodOptional<z.ZodEnum<{
1410
- failed: "failed";
1411
1410
  requested: "requested";
1412
- completed: "completed";
1413
1411
  in_progress: "in_progress";
1412
+ completed: "completed";
1413
+ failed: "failed";
1414
1414
  }>>;
1415
1415
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1416
1416
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -1538,10 +1538,10 @@ declare const UserInputMessage: z.ZodObject<{
1538
1538
  taskType: z.ZodOptional<z.ZodString>;
1539
1539
  taskId: z.ZodOptional<z.ZodString>;
1540
1540
  taskStatus: z.ZodOptional<z.ZodEnum<{
1541
- failed: "failed";
1542
1541
  requested: "requested";
1543
- completed: "completed";
1544
1542
  in_progress: "in_progress";
1543
+ completed: "completed";
1544
+ failed: "failed";
1545
1545
  }>>;
1546
1546
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1547
1547
  startTime: z.ZodOptional<z.ZodNumber>;
@@ -1669,10 +1669,10 @@ declare const UserContextMessage: z.ZodObject<{
1669
1669
  taskType: z.ZodOptional<z.ZodString>;
1670
1670
  taskId: z.ZodOptional<z.ZodString>;
1671
1671
  taskStatus: z.ZodOptional<z.ZodEnum<{
1672
- failed: "failed";
1673
1672
  requested: "requested";
1674
- completed: "completed";
1675
1673
  in_progress: "in_progress";
1674
+ completed: "completed";
1675
+ failed: "failed";
1676
1676
  }>>;
1677
1677
  taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1678
1678
  startTime: z.ZodOptional<z.ZodNumber>;