@lobehub/lobehub 2.0.0-next.190 → 2.0.0-next.191

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 (87) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/changelog/v1.json +9 -0
  3. package/package.json +1 -1
  4. package/packages/const/src/utils/merge.test.ts +679 -0
  5. package/packages/context-engine/src/processors/__tests__/AgentCouncilFlatten.test.ts +0 -20
  6. package/packages/context-engine/src/processors/__tests__/MessageContent.test.ts +5 -23
  7. package/packages/context-engine/src/providers/SystemRoleInjector.ts +0 -1
  8. package/packages/conversation-flow/src/__tests__/fixtures/inputs/agentCouncil/simple.json +4 -19
  9. package/packages/conversation-flow/src/__tests__/fixtures/inputs/agentCouncil/with-supervisor-reply.json +4 -23
  10. package/packages/conversation-flow/src/__tests__/fixtures/inputs/agentGroup/speak-different-agent.json +3 -13
  11. package/packages/conversation-flow/src/__tests__/fixtures/inputs/assistant-chain-with-followup.json +3 -8
  12. package/packages/conversation-flow/src/__tests__/fixtures/inputs/assistantGroup/assistant-with-tools.json +21 -17
  13. package/packages/conversation-flow/src/__tests__/fixtures/inputs/assistantGroup/tools-with-branches.json +15 -15
  14. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/active-index-1.json +3 -13
  15. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/assistant-branch.json +2 -9
  16. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/assistant-group-branches.json +0 -11
  17. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/assistant-user-branch.json +5 -15
  18. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/conversation.json +4 -14
  19. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/multi-assistant-group.json +0 -13
  20. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/nested.json +2 -15
  21. package/packages/conversation-flow/src/__tests__/fixtures/inputs/compare/simple.json +4 -9
  22. package/packages/conversation-flow/src/__tests__/fixtures/inputs/compare/with-tools.json +8 -17
  23. package/packages/conversation-flow/src/__tests__/fixtures/inputs/linear-conversation.json +3 -7
  24. package/packages/conversation-flow/src/__tests__/fixtures/inputs/tasks/simple.json +1 -7
  25. package/packages/conversation-flow/src/__tests__/fixtures/inputs/tasks/with-summary.json +10 -11
  26. package/packages/conversation-flow/src/__tests__/fixtures/outputs/agentCouncil/simple.json +2 -32
  27. package/packages/conversation-flow/src/__tests__/fixtures/outputs/agentCouncil/with-supervisor-reply.json +8 -46
  28. package/packages/conversation-flow/src/__tests__/fixtures/outputs/agentGroup/speak-different-agent.json +5 -24
  29. package/packages/conversation-flow/src/__tests__/fixtures/outputs/assistant-chain-with-followup.json +5 -13
  30. package/packages/conversation-flow/src/__tests__/fixtures/outputs/assistantGroup/assistant-with-tools.json +6 -16
  31. package/packages/conversation-flow/src/__tests__/fixtures/outputs/assistantGroup/tools-with-branches.json +6 -17
  32. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/active-index-1.json +4 -18
  33. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/assistant-branch.json +4 -16
  34. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/assistant-group-branches.json +0 -19
  35. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/assistant-user-branch.json +8 -24
  36. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/conversation.json +7 -23
  37. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/multi-assistant-group.json +0 -15
  38. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/nested.json +4 -25
  39. package/packages/conversation-flow/src/__tests__/fixtures/outputs/compare/simple.json +2 -13
  40. package/packages/conversation-flow/src/__tests__/fixtures/outputs/compare/with-tools.json +4 -20
  41. package/packages/conversation-flow/src/__tests__/fixtures/outputs/linear-conversation.json +4 -12
  42. package/packages/conversation-flow/src/__tests__/fixtures/outputs/tasks/simple.json +2 -14
  43. package/packages/conversation-flow/src/__tests__/fixtures/outputs/tasks/with-summary.json +20 -22
  44. package/packages/conversation-flow/src/__tests__/indexing.test.ts +0 -35
  45. package/packages/conversation-flow/src/__tests__/structuring.test.ts +0 -41
  46. package/packages/conversation-flow/src/transformation/FlatListBuilder.ts +0 -4
  47. package/packages/conversation-flow/src/transformation/__tests__/BranchResolver.test.ts +0 -10
  48. package/packages/conversation-flow/src/transformation/__tests__/ContextTreeBuilder.test.ts +0 -19
  49. package/packages/conversation-flow/src/transformation/__tests__/FlatListBuilder.test.ts +0 -37
  50. package/packages/conversation-flow/src/transformation/__tests__/MessageCollector.test.ts +0 -12
  51. package/packages/conversation-flow/src/transformation/__tests__/MessageTransformer.test.ts +0 -2
  52. package/packages/database/src/models/message.ts +0 -1
  53. package/packages/prompts/src/prompts/chatMessages/index.test.ts +0 -1
  54. package/packages/prompts/src/prompts/groupChat/__snapshots__/index.test.ts.snap +0 -21
  55. package/packages/prompts/src/prompts/groupChat/index.test.ts +0 -3
  56. package/packages/types/src/message/ui/chat.ts +0 -2
  57. package/src/features/Conversation/store/slices/data/action.test.ts +0 -14
  58. package/src/features/Conversation/store/slices/data/reducer.test.ts +0 -21
  59. package/src/features/Conversation/store/slices/data/reducer.ts +1 -1
  60. package/src/features/Conversation/store/slices/message/action/crud.test.ts +0 -10
  61. package/src/server/modules/Mecha/ContextEngineering/__tests__/serverMessagesEngine.test.ts +3 -5
  62. package/src/server/routers/lambda/__tests__/message.test.ts +1 -2
  63. package/src/server/services/agentRuntime/AgentRuntimeService.ts +109 -109
  64. package/src/server/services/agentRuntime/types.ts +8 -8
  65. package/src/server/services/doc/index.tsx +2 -2
  66. package/src/server/services/generation/index.ts +2 -2
  67. package/src/server/services/message/index.ts +3 -3
  68. package/src/server/services/usage/index.ts +4 -4
  69. package/src/services/chat/chat.test.ts +0 -6
  70. package/src/services/chat/mecha/contextEngineering.test.ts +3 -29
  71. package/src/services/chat/mecha/modelParamsResolver.test.ts +803 -0
  72. package/src/store/chat/agents/GroupOrchestration/createGroupOrchestrationExecutors.ts +0 -2
  73. package/src/store/chat/agents/__tests__/createAgentExecutors/call-tool.test.ts +0 -6
  74. package/src/store/chat/agents/__tests__/createAgentExecutors/fixtures/mockMessages.ts +0 -3
  75. package/src/store/chat/agents/createAgentExecutors.ts +4 -4
  76. package/src/store/chat/slices/aiAgent/actions/__tests__/agentGroup.test.ts +0 -2
  77. package/src/store/chat/slices/aiAgent/actions/__tests__/runAgent.test.ts +0 -3
  78. package/src/store/chat/slices/aiChat/actions/conversationLifecycle.ts +0 -1
  79. package/src/store/chat/slices/builtinTool/actions/__tests__/search.test.ts +0 -4
  80. package/src/store/chat/slices/message/reducer.test.ts +0 -5
  81. package/src/store/chat/slices/message/reducer.ts +1 -1
  82. package/src/store/chat/slices/message/selectors/displayMessage.test.ts +0 -13
  83. package/src/store/chat/slices/message/selectors/displayMessage.ts +3 -34
  84. package/src/store/chat/slices/portal/selectors.test.ts +0 -7
  85. package/src/store/chat/slices/thread/action.test.ts +0 -1
  86. package/src/store/chat/slices/translate/action.test.ts +0 -1
  87. package/src/store/tool/slices/oldStore/action.test.ts +0 -1
@@ -5,8 +5,7 @@
5
5
  "content": "Help me debug this Python code that's throwing an error",
6
6
  "parentId": null,
7
7
  "createdAt": 1704067200000,
8
- "updatedAt": 1704067200000,
9
- "meta": {}
8
+ "updatedAt": 1704067200000
10
9
  },
11
10
  {
12
11
  "id": "msg-502",
@@ -31,7 +30,6 @@
31
30
  ],
32
31
  "createdAt": 1704067202000,
33
32
  "updatedAt": 1704067202000,
34
- "meta": {},
35
33
  "usage": {
36
34
  "totalInputTokens": 32,
37
35
  "totalOutputTokens": 48,
@@ -39,7 +37,7 @@
39
37
  "cost": 0.00024
40
38
  },
41
39
  "performance": {
42
- "tps": 45.0
40
+ "tps": 45
43
41
  }
44
42
  },
45
43
  {
@@ -47,23 +45,28 @@
47
45
  "role": "tool",
48
46
  "tool_call_id": "tool-lint",
49
47
  "content": "{\"status\":\"success\",\"issues\":[{\"line\":15,\"message\":\"undefined variable 'result'\"}]}",
50
- "pluginState": { "cached": false },
48
+ "pluginState": {
49
+ "cached": false
50
+ },
51
51
  "parentId": "msg-502",
52
52
  "createdAt": 1704067203000,
53
- "updatedAt": 1704067203000,
54
- "meta": {}
53
+ "updatedAt": 1704067203000
55
54
  },
56
55
  {
57
56
  "id": "msg-504",
58
57
  "role": "tool",
59
58
  "tool_call_id": "tool-test",
60
59
  "content": "{\"status\":\"failed\",\"error\":\"NameError: name 'result' is not defined\"}",
61
- "pluginState": { "cached": false },
62
- "pluginError": { "type": "NameError", "message": "name 'result' is not defined" },
60
+ "pluginState": {
61
+ "cached": false
62
+ },
63
+ "pluginError": {
64
+ "type": "NameError",
65
+ "message": "name 'result' is not defined"
66
+ },
63
67
  "parentId": "msg-502",
64
68
  "createdAt": 1704067203100,
65
- "updatedAt": 1704067203100,
66
- "meta": {}
69
+ "updatedAt": 1704067203100
67
70
  },
68
71
  {
69
72
  "id": "msg-505",
@@ -71,8 +74,7 @@
71
74
  "content": "Here's the code:\n```python\ndef calculate():\n x = 5\n y = 10\n print(result)\n```",
72
75
  "parentId": "msg-504",
73
76
  "createdAt": 1704067210000,
74
- "updatedAt": 1704067210000,
75
- "meta": {}
77
+ "updatedAt": 1704067210000
76
78
  },
77
79
  {
78
80
  "id": "msg-506",
@@ -81,7 +83,6 @@
81
83
  "parentId": "msg-505",
82
84
  "createdAt": 1704067213000,
83
85
  "updatedAt": 1704067213000,
84
- "meta": {},
85
86
  "usage": {
86
87
  "totalInputTokens": 156,
87
88
  "totalOutputTokens": 89,
@@ -96,7 +97,6 @@
96
97
  "parentId": "msg-505",
97
98
  "createdAt": 1704067213100,
98
99
  "updatedAt": 1704067213100,
99
- "meta": {},
100
100
  "usage": {
101
101
  "totalInputTokens": 156,
102
102
  "totalOutputTokens": 72,
@@ -6,7 +6,6 @@
6
6
  "parentId": null,
7
7
  "createdAt": 1704067200000,
8
8
  "updatedAt": 1704067200000,
9
- "meta": {},
10
9
  "metadata": {
11
10
  "activeBranchIndex": 1
12
11
  }
@@ -18,7 +17,6 @@
18
17
  "parentId": "msg-201",
19
18
  "createdAt": 1704067203000,
20
19
  "updatedAt": 1704067203000,
21
- "meta": {},
22
20
  "metadata": {
23
21
  "totalInputTokens": 12,
24
22
  "totalOutputTokens": 28,
@@ -33,7 +31,6 @@
33
31
  "parentId": "msg-201",
34
32
  "createdAt": 1704067203100,
35
33
  "updatedAt": 1704067203100,
36
- "meta": {},
37
34
  "metadata": {
38
35
  "totalInputTokens": 12,
39
36
  "totalOutputTokens": 24,
@@ -48,7 +45,6 @@
48
45
  "parentId": "msg-201",
49
46
  "createdAt": 1704067203200,
50
47
  "updatedAt": 1704067203200,
51
- "meta": {},
52
48
  "metadata": {
53
49
  "totalInputTokens": 12,
54
50
  "totalOutputTokens": 26,
@@ -62,8 +58,7 @@
62
58
  "content": "I like the first one best!",
63
59
  "parentId": "msg-202",
64
60
  "createdAt": 1704067220000,
65
- "updatedAt": 1704067220000,
66
- "meta": {}
61
+ "updatedAt": 1704067220000
67
62
  },
68
63
  {
69
64
  "id": "msg-206",
@@ -72,7 +67,6 @@
72
67
  "parentId": "msg-205",
73
68
  "createdAt": 1704067222000,
74
69
  "updatedAt": 1704067222000,
75
- "meta": {},
76
70
  "metadata": {
77
71
  "totalInputTokens": 52,
78
72
  "totalOutputTokens": 48,
@@ -86,8 +80,7 @@
86
80
  "content": "Actually, I prefer the second one with the dancing variables.",
87
81
  "parentId": "msg-203",
88
82
  "createdAt": 1704067225000,
89
- "updatedAt": 1704067225000,
90
- "meta": {}
83
+ "updatedAt": 1704067225000
91
84
  },
92
85
  {
93
86
  "id": "msg-208",
@@ -96,7 +89,6 @@
96
89
  "parentId": "msg-207",
97
90
  "createdAt": 1704067227000,
98
91
  "updatedAt": 1704067227000,
99
- "meta": {},
100
92
  "metadata": {
101
93
  "totalInputTokens": 48,
102
94
  "totalOutputTokens": 52,
@@ -110,8 +102,7 @@
110
102
  "content": "Yes, please write one more about debugging!",
111
103
  "parentId": "msg-206",
112
104
  "createdAt": 1704067230000,
113
- "updatedAt": 1704067230000,
114
- "meta": {}
105
+ "updatedAt": 1704067230000
115
106
  },
116
107
  {
117
108
  "id": "msg-210",
@@ -120,7 +111,6 @@
120
111
  "parentId": "msg-209",
121
112
  "createdAt": 1704067232000,
122
113
  "updatedAt": 1704067232000,
123
- "meta": {},
124
114
  "metadata": {
125
115
  "totalInputTokens": 78,
126
116
  "totalOutputTokens": 24,
@@ -5,8 +5,7 @@
5
5
  "content": "Can you help me write a function to calculate fibonacci?",
6
6
  "parentId": null,
7
7
  "createdAt": 1704067200000,
8
- "updatedAt": 1704067200000,
9
- "meta": {}
8
+ "updatedAt": 1704067200000
10
9
  },
11
10
  {
12
11
  "id": "msg-402",
@@ -15,7 +14,6 @@
15
14
  "parentId": "msg-401",
16
15
  "createdAt": 1704067202000,
17
16
  "updatedAt": 1704067202000,
18
- "meta": {},
19
17
  "metadata": {
20
18
  "totalInputTokens": 15,
21
19
  "totalOutputTokens": 12,
@@ -31,7 +29,6 @@
31
29
  "parentId": "msg-402",
32
30
  "createdAt": 1704067205000,
33
31
  "updatedAt": 1704067205000,
34
- "meta": {},
35
32
  "metadata": {
36
33
  "totalInputTokens": 30,
37
34
  "totalOutputTokens": 45,
@@ -46,7 +43,6 @@
46
43
  "parentId": "msg-402",
47
44
  "createdAt": 1704067205100,
48
45
  "updatedAt": 1704067205100,
49
- "meta": {},
50
46
  "metadata": {
51
47
  "totalInputTokens": 30,
52
48
  "totalOutputTokens": 52,
@@ -61,7 +57,6 @@
61
57
  "parentId": "msg-402",
62
58
  "createdAt": 1704067205200,
63
59
  "updatedAt": 1704067205200,
64
- "meta": {},
65
60
  "metadata": {
66
61
  "totalInputTokens": 30,
67
62
  "totalOutputTokens": 58,
@@ -75,8 +70,7 @@
75
70
  "content": "The iterative approach looks good! Can you add some comments?",
76
71
  "parentId": "msg-404",
77
72
  "createdAt": 1704067215000,
78
- "updatedAt": 1704067215000,
79
- "meta": {}
73
+ "updatedAt": 1704067215000
80
74
  },
81
75
  {
82
76
  "id": "msg-407",
@@ -85,7 +79,6 @@
85
79
  "parentId": "msg-406",
86
80
  "createdAt": 1704067217000,
87
81
  "updatedAt": 1704067217000,
88
- "meta": {},
89
82
  "metadata": {
90
83
  "totalInputTokens": 95,
91
84
  "totalOutputTokens": 78,
@@ -10,7 +10,6 @@
10
10
  "extra": {},
11
11
  "fileList": [],
12
12
  "imageList": [],
13
- "meta": {},
14
13
  "videoList": []
15
14
  },
16
15
  {
@@ -42,7 +41,6 @@
42
41
  },
43
42
  "fileList": [],
44
43
  "imageList": [],
45
- "meta": {},
46
44
  "model": "deepseek-chat",
47
45
  "provider": "deepseek",
48
46
  "videoList": []
@@ -62,7 +60,6 @@
62
60
  "extra": {},
63
61
  "fileList": [],
64
62
  "imageList": [],
65
- "meta": {},
66
63
  "videoList": []
67
64
  },
68
65
  {
@@ -94,7 +91,6 @@
94
91
  },
95
92
  "fileList": [],
96
93
  "imageList": [],
97
- "meta": {},
98
94
  "model": "deepseek-chat",
99
95
  "provider": "deepseek",
100
96
  "videoList": []
@@ -128,7 +124,6 @@
128
124
  },
129
125
  "fileList": [],
130
126
  "imageList": [],
131
- "meta": {},
132
127
  "model": "deepseek-chat",
133
128
  "provider": "deepseek",
134
129
  "videoList": []
@@ -162,7 +157,6 @@
162
157
  },
163
158
  "fileList": [],
164
159
  "imageList": [],
165
- "meta": {},
166
160
  "model": "deepseek-chat",
167
161
  "provider": "deepseek",
168
162
  "videoList": []
@@ -179,7 +173,6 @@
179
173
  "extra": {},
180
174
  "fileList": [],
181
175
  "imageList": [],
182
- "meta": {},
183
176
  "videoList": []
184
177
  },
185
178
  {
@@ -194,7 +187,6 @@
194
187
  "extra": {},
195
188
  "fileList": [],
196
189
  "imageList": [],
197
- "meta": {},
198
190
  "videoList": []
199
191
  },
200
192
  {
@@ -208,7 +200,6 @@
208
200
  "extra": {},
209
201
  "fileList": [],
210
202
  "imageList": [],
211
- "meta": {},
212
203
  "videoList": []
213
204
  },
214
205
  {
@@ -223,7 +214,6 @@
223
214
  "extra": {},
224
215
  "fileList": [],
225
216
  "imageList": [],
226
- "meta": {},
227
217
  "videoList": []
228
218
  },
229
219
  {
@@ -241,7 +231,6 @@
241
231
  },
242
232
  "fileList": [],
243
233
  "imageList": [],
244
- "meta": {},
245
234
  "model": "deepseek-chat",
246
235
  "provider": "deepseek",
247
236
  "videoList": []
@@ -5,8 +5,7 @@
5
5
  "content": "What's the difference between map and forEach in JavaScript?",
6
6
  "parentId": null,
7
7
  "createdAt": 1704067200000,
8
- "updatedAt": 1704067200000,
9
- "meta": {}
8
+ "updatedAt": 1704067200000
10
9
  },
11
10
  {
12
11
  "id": "msg-502",
@@ -15,7 +14,6 @@
15
14
  "parentId": "msg-501",
16
15
  "createdAt": 1704067202000,
17
16
  "updatedAt": 1704067202000,
18
- "meta": {},
19
17
  "metadata": {
20
18
  "totalInputTokens": 18,
21
19
  "totalOutputTokens": 42,
@@ -30,8 +28,7 @@
30
28
  "content": "Can you show me a practical example?",
31
29
  "parentId": "msg-502",
32
30
  "createdAt": 1704067210000,
33
- "updatedAt": 1704067210000,
34
- "meta": {}
31
+ "updatedAt": 1704067210000
35
32
  },
36
33
  {
37
34
  "id": "msg-504",
@@ -40,7 +37,6 @@
40
37
  "parentId": "msg-503",
41
38
  "createdAt": 1704067212000,
42
39
  "updatedAt": 1704067212000,
43
- "meta": {},
44
40
  "metadata": {
45
41
  "totalInputTokens": 68,
46
42
  "totalOutputTokens": 95,
@@ -54,8 +50,7 @@
54
50
  "content": "Thanks! What about performance differences?",
55
51
  "parentId": "msg-504",
56
52
  "createdAt": 1704067220000,
57
- "updatedAt": 1704067220000,
58
- "meta": {}
53
+ "updatedAt": 1704067220000
59
54
  },
60
55
  {
61
56
  "id": "msg-506",
@@ -64,7 +59,6 @@
64
59
  "parentId": "msg-505",
65
60
  "createdAt": 1704067222000,
66
61
  "updatedAt": 1704067222000,
67
- "meta": {},
68
62
  "metadata": {
69
63
  "totalInputTokens": 175,
70
64
  "totalOutputTokens": 58,
@@ -78,8 +72,7 @@
78
72
  "content": "Can you explain the technical implementation details?",
79
73
  "parentId": "msg-502",
80
74
  "createdAt": 1704067210100,
81
- "updatedAt": 1704067210100,
82
- "meta": {}
75
+ "updatedAt": 1704067210100
83
76
  },
84
77
  {
85
78
  "id": "msg-508",
@@ -88,7 +81,6 @@
88
81
  "parentId": "msg-507",
89
82
  "createdAt": 1704067212100,
90
83
  "updatedAt": 1704067212100,
91
- "meta": {},
92
84
  "metadata": {
93
85
  "totalInputTokens": 68,
94
86
  "totalOutputTokens": 82,
@@ -102,8 +94,7 @@
102
94
  "content": "What about memory usage?",
103
95
  "parentId": "msg-508",
104
96
  "createdAt": 1704067220100,
105
- "updatedAt": 1704067220100,
106
- "meta": {}
97
+ "updatedAt": 1704067220100
107
98
  },
108
99
  {
109
100
  "id": "msg-510",
@@ -112,7 +103,6 @@
112
103
  "parentId": "msg-509",
113
104
  "createdAt": 1704067222100,
114
105
  "updatedAt": 1704067222100,
115
- "meta": {},
116
106
  "metadata": {
117
107
  "totalInputTokens": 160,
118
108
  "totalOutputTokens": 68,
@@ -5,8 +5,7 @@
5
5
  "content": "Write a haiku about programming",
6
6
  "parentId": null,
7
7
  "createdAt": 1704067200000,
8
- "updatedAt": 1704067200000,
9
- "meta": {}
8
+ "updatedAt": 1704067200000
10
9
  },
11
10
  {
12
11
  "id": "msg-202",
@@ -15,7 +14,6 @@
15
14
  "parentId": "msg-201",
16
15
  "createdAt": 1704067203000,
17
16
  "updatedAt": 1704067203000,
18
- "meta": {},
19
17
  "metadata": {
20
18
  "totalInputTokens": 12,
21
19
  "totalOutputTokens": 28,
@@ -30,7 +28,6 @@
30
28
  "parentId": "msg-201",
31
29
  "createdAt": 1704067203100,
32
30
  "updatedAt": 1704067203100,
33
- "meta": {},
34
31
  "metadata": {
35
32
  "totalInputTokens": 12,
36
33
  "totalOutputTokens": 24,
@@ -45,7 +42,6 @@
45
42
  "parentId": "msg-201",
46
43
  "createdAt": 1704067203200,
47
44
  "updatedAt": 1704067203200,
48
- "meta": {},
49
45
  "metadata": {
50
46
  "totalInputTokens": 12,
51
47
  "totalOutputTokens": 26,
@@ -59,8 +55,7 @@
59
55
  "content": "I like the first one best!",
60
56
  "parentId": "msg-202",
61
57
  "createdAt": 1704067220000,
62
- "updatedAt": 1704067220000,
63
- "meta": {}
58
+ "updatedAt": 1704067220000
64
59
  },
65
60
  {
66
61
  "id": "msg-206",
@@ -69,7 +64,6 @@
69
64
  "parentId": "msg-205",
70
65
  "createdAt": 1704067222000,
71
66
  "updatedAt": 1704067222000,
72
- "meta": {},
73
67
  "metadata": {
74
68
  "totalInputTokens": 52,
75
69
  "totalOutputTokens": 48,
@@ -83,8 +77,7 @@
83
77
  "content": "Actually, I prefer the second one with the dancing variables.",
84
78
  "parentId": "msg-203",
85
79
  "createdAt": 1704067225000,
86
- "updatedAt": 1704067225000,
87
- "meta": {}
80
+ "updatedAt": 1704067225000
88
81
  },
89
82
  {
90
83
  "id": "msg-208",
@@ -93,7 +86,6 @@
93
86
  "parentId": "msg-207",
94
87
  "createdAt": 1704067227000,
95
88
  "updatedAt": 1704067227000,
96
- "meta": {},
97
89
  "metadata": {
98
90
  "totalInputTokens": 48,
99
91
  "totalOutputTokens": 52,
@@ -107,8 +99,7 @@
107
99
  "content": "Yes, please write one more about debugging!",
108
100
  "parentId": "msg-206",
109
101
  "createdAt": 1704067230000,
110
- "updatedAt": 1704067230000,
111
- "meta": {}
102
+ "updatedAt": 1704067230000
112
103
  },
113
104
  {
114
105
  "id": "msg-210",
@@ -117,7 +108,6 @@
117
108
  "parentId": "msg-209",
118
109
  "createdAt": 1704067232000,
119
110
  "updatedAt": 1704067232000,
120
- "meta": {},
121
111
  "metadata": {
122
112
  "totalInputTokens": 78,
123
113
  "totalOutputTokens": 24,
@@ -6,7 +6,6 @@
6
6
  "parentId": null,
7
7
  "createdAt": 1704067200000,
8
8
  "updatedAt": 1704067200000,
9
- "meta": {},
10
9
  "metadata": {
11
10
  "activeBranchIndex": 2
12
11
  }
@@ -18,7 +17,6 @@
18
17
  "parentId": "msg-user-1",
19
18
  "createdAt": 1704067202000,
20
19
  "updatedAt": 1704067202000,
21
- "meta": {},
22
20
  "metadata": {
23
21
  "totalTokens": 3751,
24
22
  "totalInputTokens": 3441,
@@ -41,7 +39,6 @@
41
39
  "parentId": "msg-assistant-1",
42
40
  "createdAt": 1704067205000,
43
41
  "updatedAt": 1704067205000,
44
- "meta": {},
45
42
  "tool_call_id": "call-1",
46
43
  "plugin": {
47
44
  "apiName": "search",
@@ -66,7 +63,6 @@
66
63
  "parentId": "msg-tool-1",
67
64
  "createdAt": 1704067208000,
68
65
  "updatedAt": 1704067208000,
69
- "meta": {},
70
66
  "metadata": {
71
67
  "totalTokens": 4311,
72
68
  "totalInputTokens": 4128,
@@ -89,7 +85,6 @@
89
85
  "parentId": "msg-assistant-2",
90
86
  "createdAt": 1704067211000,
91
87
  "updatedAt": 1704067211000,
92
- "meta": {},
93
88
  "tool_call_id": "call-2",
94
89
  "plugin": {
95
90
  "apiName": "search",
@@ -104,7 +99,6 @@
104
99
  "parentId": "msg-tool-2",
105
100
  "createdAt": 1704067214000,
106
101
  "updatedAt": 1704067214000,
107
- "meta": {},
108
102
  "metadata": {
109
103
  "totalTokens": 6643,
110
104
  "totalInputTokens": 6135,
@@ -121,7 +115,6 @@
121
115
  "parentId": "msg-user-1",
122
116
  "createdAt": 1704067220000,
123
117
  "updatedAt": 1704067220000,
124
- "meta": {},
125
118
  "metadata": {
126
119
  "totalTokens": 3809,
127
120
  "totalInputTokens": 3440,
@@ -151,7 +144,6 @@
151
144
  "parentId": "msg-assistant-4",
152
145
  "createdAt": 1704067223000,
153
146
  "updatedAt": 1704067223000,
154
- "meta": {},
155
147
  "tool_call_id": "call-3",
156
148
  "plugin": {
157
149
  "apiName": "search",
@@ -170,7 +162,6 @@
170
162
  "parentId": "msg-assistant-4",
171
163
  "createdAt": 1704067226000,
172
164
  "updatedAt": 1704067226000,
173
- "meta": {},
174
165
  "tool_call_id": "call-4",
175
166
  "plugin": {
176
167
  "apiName": "search",
@@ -189,7 +180,6 @@
189
180
  "parentId": "msg-tool-4",
190
181
  "createdAt": 1704067229000,
191
182
  "updatedAt": 1704067229000,
192
- "meta": {},
193
183
  "metadata": {
194
184
  "totalTokens": 7100,
195
185
  "totalInputTokens": 6425,
@@ -203,7 +193,6 @@
203
193
  "parentId": "msg-user-1",
204
194
  "createdAt": 1704067240000,
205
195
  "updatedAt": 1704067240000,
206
- "meta": {},
207
196
  "metadata": {
208
197
  "totalTokens": 3627,
209
198
  "totalInputTokens": 3441,
@@ -226,7 +215,6 @@
226
215
  "parentId": "msg-assistant-6",
227
216
  "createdAt": 1704067243000,
228
217
  "updatedAt": 1704067243000,
229
- "meta": {},
230
218
  "tool_call_id": "call-5",
231
219
  "plugin": {
232
220
  "apiName": "search",
@@ -250,7 +238,6 @@
250
238
  "parentId": "msg-tool-5",
251
239
  "createdAt": 1704067246000,
252
240
  "updatedAt": 1704067246000,
253
- "meta": {},
254
241
  "metadata": {
255
242
  "totalTokens": 8188,
256
243
  "totalInputTokens": 7604,
@@ -5,8 +5,7 @@
5
5
  "content": "What's your favorite programming paradigm?",
6
6
  "parentId": null,
7
7
  "createdAt": 1704067200000,
8
- "updatedAt": 1704067200000,
9
- "meta": {}
8
+ "updatedAt": 1704067200000
10
9
  },
11
10
  {
12
11
  "id": "msg-302",
@@ -15,7 +14,6 @@
15
14
  "parentId": "msg-301",
16
15
  "createdAt": 1704067202000,
17
16
  "updatedAt": 1704067202000,
18
- "meta": {},
19
17
  "metadata": {
20
18
  "totalInputTokens": 10,
21
19
  "totalOutputTokens": 15,
@@ -30,7 +28,6 @@
30
28
  "parentId": "msg-301",
31
29
  "createdAt": 1704067202100,
32
30
  "updatedAt": 1704067202100,
33
- "meta": {},
34
31
  "metadata": {
35
32
  "totalInputTokens": 10,
36
33
  "totalOutputTokens": 12,
@@ -45,7 +42,6 @@
45
42
  "parentId": "msg-301",
46
43
  "createdAt": 1704067202200,
47
44
  "updatedAt": 1704067202200,
48
- "meta": {},
49
45
  "metadata": {
50
46
  "totalInputTokens": 10,
51
47
  "totalOutputTokens": 13,
@@ -60,7 +56,6 @@
60
56
  "parentId": "msg-302",
61
57
  "createdAt": 1704067210000,
62
58
  "updatedAt": 1704067210000,
63
- "meta": {},
64
59
  "metadata": {
65
60
  "activeBranchIndex": 1
66
61
  }
@@ -72,7 +67,6 @@
72
67
  "parentId": "msg-305",
73
68
  "createdAt": 1704067212000,
74
69
  "updatedAt": 1704067212000,
75
- "meta": {},
76
70
  "metadata": {
77
71
  "totalInputTokens": 30,
78
72
  "totalOutputTokens": 18,
@@ -87,7 +81,6 @@
87
81
  "parentId": "msg-305",
88
82
  "createdAt": 1704067212100,
89
83
  "updatedAt": 1704067212100,
90
- "meta": {},
91
84
  "metadata": {
92
85
  "totalInputTokens": 30,
93
86
  "totalOutputTokens": 22,
@@ -101,8 +94,7 @@
101
94
  "content": "What are some benefits of immutability?",
102
95
  "parentId": "msg-307",
103
96
  "createdAt": 1704067220000,
104
- "updatedAt": 1704067220000,
105
- "meta": {}
97
+ "updatedAt": 1704067220000
106
98
  },
107
99
  {
108
100
  "id": "msg-311",
@@ -111,7 +103,6 @@
111
103
  "parentId": "msg-310",
112
104
  "createdAt": 1704067222000,
113
105
  "updatedAt": 1704067222000,
114
- "meta": {},
115
106
  "metadata": {
116
107
  "totalInputTokens": 55,
117
108
  "totalOutputTokens": 16,
@@ -126,7 +117,6 @@
126
117
  "parentId": "msg-310",
127
118
  "createdAt": 1704067222100,
128
119
  "updatedAt": 1704067222100,
129
- "meta": {},
130
120
  "metadata": {
131
121
  "totalInputTokens": 55,
132
122
  "totalOutputTokens": 14,
@@ -141,7 +131,6 @@
141
131
  "parentId": "msg-311",
142
132
  "createdAt": 1704067230000,
143
133
  "updatedAt": 1704067230000,
144
- "meta": {},
145
134
  "metadata": {
146
135
  "activeBranchIndex": 1
147
136
  }
@@ -153,7 +142,6 @@
153
142
  "parentId": "msg-314",
154
143
  "createdAt": 1704067232000,
155
144
  "updatedAt": 1704067232000,
156
- "meta": {},
157
145
  "metadata": {
158
146
  "totalInputTokens": 75,
159
147
  "totalOutputTokens": 35,
@@ -168,7 +156,6 @@
168
156
  "parentId": "msg-314",
169
157
  "createdAt": 1704067232100,
170
158
  "updatedAt": 1704067232100,
171
- "meta": {},
172
159
  "metadata": {
173
160
  "totalInputTokens": 75,
174
161
  "totalOutputTokens": 42,