@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
@@ -6,7 +6,6 @@
6
6
  "parentId": null,
7
7
  "createdAt": 1704067200000,
8
8
  "updatedAt": 1704067200000,
9
- "meta": {},
10
9
  "metadata": {
11
10
  "compare": true
12
11
  }
@@ -20,13 +19,12 @@
20
19
  "provider": "openai",
21
20
  "createdAt": 1704067205000,
22
21
  "updatedAt": 1704067205000,
23
- "meta": {},
24
22
  "metadata": {
25
23
  "totalInputTokens": 12,
26
24
  "totalOutputTokens": 145,
27
25
  "totalTokens": 157,
28
26
  "cost": 0.00471,
29
- "tps": 42.0,
27
+ "tps": 42,
30
28
  "ttft": 387,
31
29
  "duration": 3452,
32
30
  "latency": 3839
@@ -41,13 +39,12 @@
41
39
  "provider": "anthropic",
42
40
  "createdAt": 1704067205100,
43
41
  "updatedAt": 1704067205100,
44
- "meta": {},
45
42
  "metadata": {
46
43
  "totalInputTokens": 12,
47
44
  "totalOutputTokens": 158,
48
45
  "totalTokens": 170,
49
46
  "cost": 0.00085,
50
- "tps": 51.0,
47
+ "tps": 51,
51
48
  "ttft": 298,
52
49
  "duration": 3098,
53
50
  "latency": 3396,
@@ -60,8 +57,7 @@
60
57
  "content": "What about performance differences?",
61
58
  "parentId": "msg-603",
62
59
  "createdAt": 1704067215000,
63
- "updatedAt": 1704067215000,
64
- "meta": {}
60
+ "updatedAt": 1704067215000
65
61
  },
66
62
  {
67
63
  "id": "msg-605",
@@ -70,13 +66,12 @@
70
66
  "parentId": "msg-604",
71
67
  "createdAt": 1704067217000,
72
68
  "updatedAt": 1704067217000,
73
- "meta": {},
74
69
  "metadata": {
75
70
  "totalInputTokens": 182,
76
71
  "totalOutputTokens": 167,
77
72
  "totalTokens": 349,
78
73
  "cost": 0.001745,
79
- "tps": 48.0,
74
+ "tps": 48,
80
75
  "ttft": 345,
81
76
  "duration": 3479,
82
77
  "latency": 3824
@@ -6,7 +6,6 @@
6
6
  "parentId": null,
7
7
  "createdAt": 1704067200000,
8
8
  "updatedAt": 1704067200000,
9
- "meta": {},
10
9
  "metadata": {
11
10
  "compare": true
12
11
  }
@@ -20,13 +19,12 @@
20
19
  "provider": "openai",
21
20
  "createdAt": 1704067205000,
22
21
  "updatedAt": 1704067205000,
23
- "meta": {},
24
22
  "metadata": {
25
23
  "totalInputTokens": 24,
26
24
  "totalOutputTokens": 198,
27
25
  "totalTokens": 222,
28
26
  "cost": 0.00666,
29
- "tps": 45.0,
27
+ "tps": 45,
30
28
  "ttft": 456,
31
29
  "duration": 4400,
32
30
  "latency": 4856
@@ -41,13 +39,12 @@
41
39
  "provider": "anthropic",
42
40
  "createdAt": 1704067205100,
43
41
  "updatedAt": 1704067205100,
44
- "meta": {},
45
42
  "metadata": {
46
43
  "totalInputTokens": 24,
47
44
  "totalOutputTokens": 215,
48
45
  "totalTokens": 239,
49
46
  "cost": 0.001195,
50
- "tps": 58.0,
47
+ "tps": 58,
51
48
  "ttft": 312,
52
49
  "duration": 3707,
53
50
  "latency": 4019,
@@ -79,13 +76,12 @@
79
76
  ],
80
77
  "createdAt": 1704067205200,
81
78
  "updatedAt": 1704067205200,
82
- "meta": {},
83
79
  "metadata": {
84
80
  "totalInputTokens": 24,
85
81
  "totalOutputTokens": 38,
86
82
  "totalTokens": 62,
87
83
  "cost": 0.000186,
88
- "tps": 52.0,
84
+ "tps": 52,
89
85
  "ttft": 198,
90
86
  "duration": 730,
91
87
  "latency": 928
@@ -102,8 +98,7 @@
102
98
  },
103
99
  "parentId": "msg-304",
104
100
  "createdAt": 1704067207540,
105
- "updatedAt": 1704067207540,
106
- "meta": {}
101
+ "updatedAt": 1704067207540
107
102
  },
108
103
  {
109
104
  "id": "msg-306",
@@ -116,8 +111,7 @@
116
111
  },
117
112
  "parentId": "msg-304",
118
113
  "createdAt": 1704067207552,
119
- "updatedAt": 1704067207552,
120
- "meta": {}
114
+ "updatedAt": 1704067207552
121
115
  },
122
116
  {
123
117
  "id": "msg-307",
@@ -126,13 +120,12 @@
126
120
  "parentId": "msg-306",
127
121
  "createdAt": 1704067208000,
128
122
  "updatedAt": 1704067208000,
129
- "meta": {},
130
123
  "metadata": {
131
124
  "totalInputTokens": 156,
132
125
  "totalOutputTokens": 134,
133
126
  "totalTokens": 290,
134
127
  "cost": 0.00087,
135
- "tps": 48.0,
128
+ "tps": 48,
136
129
  "ttft": 234,
137
130
  "duration": 2791,
138
131
  "latency": 3025
@@ -144,8 +137,7 @@
144
137
  "content": "Great analysis! Can you explain why QuickSort has better cache locality?",
145
138
  "parentId": "msg-303",
146
139
  "createdAt": 1704067220000,
147
- "updatedAt": 1704067220000,
148
- "meta": {}
140
+ "updatedAt": 1704067220000
149
141
  },
150
142
  {
151
143
  "id": "msg-309",
@@ -154,13 +146,12 @@
154
146
  "parentId": "msg-308",
155
147
  "createdAt": 1704067222000,
156
148
  "updatedAt": 1704067222000,
157
- "meta": {},
158
149
  "metadata": {
159
150
  "totalInputTokens": 268,
160
151
  "totalOutputTokens": 176,
161
152
  "totalTokens": 444,
162
153
  "cost": 0.00222,
163
- "tps": 52.0,
154
+ "tps": 52,
164
155
  "ttft": 312,
165
156
  "duration": 3384,
166
157
  "latency": 3696
@@ -5,8 +5,7 @@
5
5
  "content": "Can you help me write a Python function to check if a number is prime?",
6
6
  "parentId": null,
7
7
  "createdAt": 1704067200000,
8
- "updatedAt": 1704067200000,
9
- "meta": {}
8
+ "updatedAt": 1704067200000
10
9
  },
11
10
  {
12
11
  "id": "msg-002",
@@ -15,7 +14,6 @@
15
14
  "parentId": "msg-001",
16
15
  "createdAt": 1704067205000,
17
16
  "updatedAt": 1704067205000,
18
- "meta": {},
19
17
  "usage": {
20
18
  "totalInputTokens": 24,
21
19
  "totalOutputTokens": 156,
@@ -23,7 +21,7 @@
23
21
  "cost": 0.00054
24
22
  },
25
23
  "performance": {
26
- "tps": 52.0,
24
+ "tps": 52,
27
25
  "ttft": 234,
28
26
  "duration": 3000,
29
27
  "latency": 3234
@@ -35,8 +33,7 @@
35
33
  "content": "Thanks! Can you add some test cases?",
36
34
  "parentId": "msg-002",
37
35
  "createdAt": 1704067210000,
38
- "updatedAt": 1704067210000,
39
- "meta": {}
36
+ "updatedAt": 1704067210000
40
37
  },
41
38
  {
42
39
  "id": "msg-004",
@@ -45,7 +42,6 @@
45
42
  "parentId": "msg-003",
46
43
  "createdAt": 1704067213000,
47
44
  "updatedAt": 1704067213000,
48
- "meta": {},
49
45
  "usage": {
50
46
  "totalInputTokens": 180,
51
47
  "totalOutputTokens": 89,
@@ -5,8 +5,7 @@
5
5
  "content": "Help me create two tasks to research the weather in Hangzhou and Beijing tomorrow.",
6
6
  "parentId": null,
7
7
  "createdAt": 1735526559382,
8
- "updatedAt": 1735526559382,
9
- "meta": {}
8
+ "updatedAt": 1735526559382
10
9
  },
11
10
  {
12
11
  "id": "msg-assistant-1",
@@ -15,7 +14,6 @@
15
14
  "parentId": "msg-user-1",
16
15
  "createdAt": 1735526560163,
17
16
  "updatedAt": 1735526585550,
18
- "meta": {},
19
17
  "model": "deepseek-chat",
20
18
  "provider": "deepseek",
21
19
  "tools": [
@@ -46,7 +44,6 @@
46
44
  "tool_call_id": "call_exec_tasks_1",
47
45
  "createdAt": 1735526588116,
48
46
  "updatedAt": 1735526591337,
49
- "meta": {},
50
47
  "plugin": {
51
48
  "apiName": "execTasks",
52
49
  "arguments": "{\"tasks\": [{\"description\": \"Research Hangzhou weather\", \"instruction\": \"Search for Hangzhou weather tomorrow.\"}, {\"description\": \"Research Beijing weather\", \"instruction\": \"Search for Beijing weather tomorrow.\"}]}",
@@ -75,7 +72,6 @@
75
72
  "parentId": "msg-tool-1",
76
73
  "createdAt": 1735526594643,
77
74
  "updatedAt": 1735526756262,
78
- "meta": {},
79
75
  "metadata": {
80
76
  "instruction": "Search for Hangzhou weather tomorrow."
81
77
  },
@@ -97,7 +93,6 @@
97
93
  "parentId": "msg-tool-1",
98
94
  "createdAt": 1735526595647,
99
95
  "updatedAt": 1735526792430,
100
- "meta": {},
101
96
  "metadata": {
102
97
  "instruction": "Search for Beijing weather tomorrow."
103
98
  },
@@ -119,7 +114,6 @@
119
114
  "parentId": "msg-tool-1",
120
115
  "createdAt": 1735526795651,
121
116
  "updatedAt": 1735526813171,
122
- "meta": {},
123
117
  "model": "deepseek-chat",
124
118
  "provider": "deepseek",
125
119
  "metadata": {
@@ -5,8 +5,7 @@
5
5
  "content": "Create three parallel tasks to research AI topics.",
6
6
  "parentId": null,
7
7
  "createdAt": 1735526559382,
8
- "updatedAt": 1735526559382,
9
- "meta": {}
8
+ "updatedAt": 1735526559382
10
9
  },
11
10
  {
12
11
  "id": "msg-assistant-1",
@@ -15,7 +14,6 @@
15
14
  "parentId": "msg-user-1",
16
15
  "createdAt": 1735526560163,
17
16
  "updatedAt": 1735526585550,
18
- "meta": {},
19
17
  "model": "gpt-4",
20
18
  "provider": "openai",
21
19
  "tools": [
@@ -36,13 +34,18 @@
36
34
  "tool_call_id": "call_exec_tasks_1",
37
35
  "createdAt": 1735526588116,
38
36
  "updatedAt": 1735526591337,
39
- "meta": {},
40
37
  "pluginState": {
41
38
  "type": "execTasks",
42
39
  "tasks": [
43
- { "description": "Research LLM architectures" },
44
- { "description": "Research AI agents" },
45
- { "description": "Research RAG systems" }
40
+ {
41
+ "description": "Research LLM architectures"
42
+ },
43
+ {
44
+ "description": "Research AI agents"
45
+ },
46
+ {
47
+ "description": "Research RAG systems"
48
+ }
46
49
  ],
47
50
  "parentMessageId": "msg-tool-1"
48
51
  }
@@ -54,7 +57,6 @@
54
57
  "parentId": "msg-tool-1",
55
58
  "createdAt": 1735526594643,
56
59
  "updatedAt": 1735526756262,
57
- "meta": {},
58
60
  "taskDetail": {
59
61
  "duration": 120000,
60
62
  "status": "completed",
@@ -72,7 +74,6 @@
72
74
  "parentId": "msg-tool-1",
73
75
  "createdAt": 1735526595647,
74
76
  "updatedAt": 1735526792430,
75
- "meta": {},
76
77
  "taskDetail": {
77
78
  "duration": 150000,
78
79
  "status": "completed",
@@ -90,7 +91,6 @@
90
91
  "parentId": "msg-tool-1",
91
92
  "createdAt": 1735526596000,
92
93
  "updatedAt": 1735526800000,
93
- "meta": {},
94
94
  "taskDetail": {
95
95
  "duration": 130000,
96
96
  "status": "completed",
@@ -108,7 +108,6 @@
108
108
  "parentId": "msg-tool-1",
109
109
  "createdAt": 1735526810000,
110
110
  "updatedAt": 1735526820000,
111
- "meta": {},
112
111
  "model": "gpt-4",
113
112
  "provider": "openai"
114
113
  }
@@ -42,8 +42,7 @@
42
42
  "content": "Please have everyone discuss the pros and cons of microservices architecture.",
43
43
  "parentId": null,
44
44
  "createdAt": 1704067200000,
45
- "updatedAt": 1704067200000,
46
- "meta": {}
45
+ "updatedAt": 1704067200000
47
46
  },
48
47
  {
49
48
  "id": "msg-supervisor-1",
@@ -53,7 +52,6 @@
53
52
  "parentId": "msg-user-1",
54
53
  "createdAt": 1704067201000,
55
54
  "updatedAt": 1704067201000,
56
- "meta": {},
57
55
  "children": [
58
56
  {
59
57
  "id": "msg-supervisor-1",
@@ -96,10 +94,6 @@
96
94
  "provider": "openai",
97
95
  "createdAt": 1704067205000,
98
96
  "updatedAt": 1704067205000,
99
- "meta": {
100
- "avatar": "backend-dev",
101
- "title": "Backend Developer"
102
- },
103
97
  "metadata": {
104
98
  "totalInputTokens": 50,
105
99
  "totalOutputTokens": 120,
@@ -120,10 +114,6 @@
120
114
  "provider": "anthropic",
121
115
  "createdAt": 1704067205500,
122
116
  "updatedAt": 1704067205500,
123
- "meta": {
124
- "avatar": "devops",
125
- "title": "DevOps Engineer"
126
- },
127
117
  "metadata": {
128
118
  "totalInputTokens": 50,
129
119
  "totalOutputTokens": 130,
@@ -144,10 +134,6 @@
144
134
  "provider": "openai",
145
135
  "createdAt": 1704067206000,
146
136
  "updatedAt": 1704067206000,
147
- "meta": {
148
- "avatar": "architect",
149
- "title": "Software Architect"
150
- },
151
137
  "metadata": {
152
138
  "totalInputTokens": 50,
153
139
  "totalOutputTokens": 125,
@@ -159,7 +145,6 @@
159
145
  }
160
146
  }
161
147
  ],
162
- "meta": {},
163
148
  "role": "agentCouncil",
164
149
  "updatedAt": 1704067206000
165
150
  }
@@ -171,8 +156,7 @@
171
156
  "content": "Please have everyone discuss the pros and cons of microservices architecture.",
172
157
  "parentId": null,
173
158
  "createdAt": 1704067200000,
174
- "updatedAt": 1704067200000,
175
- "meta": {}
159
+ "updatedAt": 1704067200000
176
160
  },
177
161
  "msg-supervisor-1": {
178
162
  "id": "msg-supervisor-1",
@@ -182,7 +166,6 @@
182
166
  "parentId": "msg-user-1",
183
167
  "createdAt": 1704067201000,
184
168
  "updatedAt": 1704067201000,
185
- "meta": {},
186
169
  "tools": [
187
170
  {
188
171
  "id": "call_broadcast_1",
@@ -204,7 +187,6 @@
204
187
  "tool_call_id": "call_broadcast_1",
205
188
  "createdAt": 1704067202000,
206
189
  "updatedAt": 1704067202000,
207
- "meta": {},
208
190
  "metadata": {
209
191
  "agentCouncil": true
210
192
  }
@@ -219,10 +201,6 @@
219
201
  "provider": "openai",
220
202
  "createdAt": 1704067205000,
221
203
  "updatedAt": 1704067205000,
222
- "meta": {
223
- "avatar": "backend-dev",
224
- "title": "Backend Developer"
225
- },
226
204
  "metadata": {
227
205
  "totalInputTokens": 50,
228
206
  "totalOutputTokens": 120,
@@ -243,10 +221,6 @@
243
221
  "provider": "anthropic",
244
222
  "createdAt": 1704067205500,
245
223
  "updatedAt": 1704067205500,
246
- "meta": {
247
- "avatar": "devops",
248
- "title": "DevOps Engineer"
249
- },
250
224
  "metadata": {
251
225
  "totalInputTokens": 50,
252
226
  "totalOutputTokens": 130,
@@ -267,10 +241,6 @@
267
241
  "provider": "openai",
268
242
  "createdAt": 1704067206000,
269
243
  "updatedAt": 1704067206000,
270
- "meta": {
271
- "avatar": "architect",
272
- "title": "Software Architect"
273
- },
274
244
  "metadata": {
275
245
  "totalInputTokens": 50,
276
246
  "totalOutputTokens": 125,
@@ -46,8 +46,7 @@
46
46
  "content": "Please have everyone discuss the pros and cons of microservices architecture.",
47
47
  "parentId": null,
48
48
  "createdAt": 1704067200000,
49
- "updatedAt": 1704067200000,
50
- "meta": {}
49
+ "updatedAt": 1704067200000
51
50
  },
52
51
  {
53
52
  "id": "msg-supervisor-1",
@@ -57,7 +56,6 @@
57
56
  "parentId": "msg-user-1",
58
57
  "createdAt": 1704067201000,
59
58
  "updatedAt": 1704067201000,
60
- "meta": {},
61
59
  "metadata": {
62
60
  "isSupervisor": true
63
61
  },
@@ -105,11 +103,7 @@
105
103
  "model": "gpt-4",
106
104
  "provider": "openai",
107
105
  "createdAt": 1704067205000,
108
- "updatedAt": 1704067205000,
109
- "meta": {
110
- "avatar": "backend-dev",
111
- "title": "Backend Developer"
112
- }
106
+ "updatedAt": 1704067205000
113
107
  },
114
108
  {
115
109
  "id": "msg-agent-devops-1",
@@ -120,11 +114,7 @@
120
114
  "model": "claude-3-5-sonnet-20241022",
121
115
  "provider": "anthropic",
122
116
  "createdAt": 1704067205500,
123
- "updatedAt": 1704067205500,
124
- "meta": {
125
- "avatar": "devops",
126
- "title": "DevOps Engineer"
127
- }
117
+ "updatedAt": 1704067205500
128
118
  },
129
119
  {
130
120
  "id": "msg-agent-architect-1",
@@ -135,14 +125,9 @@
135
125
  "model": "gpt-4",
136
126
  "provider": "openai",
137
127
  "createdAt": 1704067206000,
138
- "updatedAt": 1704067206000,
139
- "meta": {
140
- "avatar": "architect",
141
- "title": "Software Architect"
142
- }
128
+ "updatedAt": 1704067206000
143
129
  }
144
130
  ],
145
- "meta": {},
146
131
  "role": "agentCouncil",
147
132
  "updatedAt": 1704067206000
148
133
  },
@@ -156,10 +141,6 @@
156
141
  "provider": "openai",
157
142
  "createdAt": 1704067210000,
158
143
  "updatedAt": 1704067210000,
159
- "meta": {
160
- "avatar": "supervisor",
161
- "title": "Supervisor"
162
- },
163
144
  "metadata": {
164
145
  "isSupervisor": true
165
146
  },
@@ -181,8 +162,7 @@
181
162
  "content": "Please have everyone discuss the pros and cons of microservices architecture.",
182
163
  "parentId": null,
183
164
  "createdAt": 1704067200000,
184
- "updatedAt": 1704067200000,
185
- "meta": {}
165
+ "updatedAt": 1704067200000
186
166
  },
187
167
  "msg-supervisor-1": {
188
168
  "id": "msg-supervisor-1",
@@ -192,7 +172,6 @@
192
172
  "parentId": "msg-user-1",
193
173
  "createdAt": 1704067201000,
194
174
  "updatedAt": 1704067201000,
195
- "meta": {},
196
175
  "metadata": {
197
176
  "isSupervisor": true
198
177
  },
@@ -217,7 +196,6 @@
217
196
  "tool_call_id": "call_broadcast_1",
218
197
  "createdAt": 1704067202000,
219
198
  "updatedAt": 1704067202000,
220
- "meta": {},
221
199
  "metadata": {
222
200
  "agentCouncil": true
223
201
  }
@@ -231,11 +209,7 @@
231
209
  "model": "gpt-4",
232
210
  "provider": "openai",
233
211
  "createdAt": 1704067205000,
234
- "updatedAt": 1704067205000,
235
- "meta": {
236
- "avatar": "backend-dev",
237
- "title": "Backend Developer"
238
- }
212
+ "updatedAt": 1704067205000
239
213
  },
240
214
  "msg-agent-devops-1": {
241
215
  "id": "msg-agent-devops-1",
@@ -246,11 +220,7 @@
246
220
  "model": "claude-3-5-sonnet-20241022",
247
221
  "provider": "anthropic",
248
222
  "createdAt": 1704067205500,
249
- "updatedAt": 1704067205500,
250
- "meta": {
251
- "avatar": "devops",
252
- "title": "DevOps Engineer"
253
- }
223
+ "updatedAt": 1704067205500
254
224
  },
255
225
  "msg-agent-architect-1": {
256
226
  "id": "msg-agent-architect-1",
@@ -261,11 +231,7 @@
261
231
  "model": "gpt-4",
262
232
  "provider": "openai",
263
233
  "createdAt": 1704067206000,
264
- "updatedAt": 1704067206000,
265
- "meta": {
266
- "avatar": "architect",
267
- "title": "Software Architect"
268
- }
234
+ "updatedAt": 1704067206000
269
235
  },
270
236
  "msg-supervisor-summary": {
271
237
  "id": "msg-supervisor-summary",
@@ -277,10 +243,6 @@
277
243
  "provider": "openai",
278
244
  "createdAt": 1704067210000,
279
245
  "updatedAt": 1704067210000,
280
- "meta": {
281
- "avatar": "supervisor",
282
- "title": "Supervisor"
283
- },
284
246
  "metadata": {
285
247
  "isSupervisor": true
286
248
  }
@@ -27,8 +27,7 @@
27
27
  "content": "Can you ask the backend developer about the API design?",
28
28
  "parentId": null,
29
29
  "createdAt": 1704067200000,
30
- "updatedAt": 1704067200000,
31
- "meta": {}
30
+ "updatedAt": 1704067200000
32
31
  },
33
32
  {
34
33
  "id": "msg-supervisor-1",
@@ -38,10 +37,6 @@
38
37
  "parentId": "msg-user-1",
39
38
  "createdAt": 1704067201000,
40
39
  "updatedAt": 1704067201000,
41
- "meta": {
42
- "avatar": "supervisor",
43
- "title": "Supervisor"
44
- },
45
40
  "metadata": {
46
41
  "isSupervisor": true
47
42
  },
@@ -81,11 +76,7 @@
81
76
  "model": "gpt-4",
82
77
  "provider": "openai",
83
78
  "createdAt": 1704067205000,
84
- "updatedAt": 1704067205000,
85
- "meta": {
86
- "avatar": "backend-dev",
87
- "title": "Backend Developer"
88
- }
79
+ "updatedAt": 1704067205000
89
80
  }
90
81
  ],
91
82
  "messageMap": {
@@ -95,8 +86,7 @@
95
86
  "content": "Can you ask the backend developer about the API design?",
96
87
  "parentId": null,
97
88
  "createdAt": 1704067200000,
98
- "updatedAt": 1704067200000,
99
- "meta": {}
89
+ "updatedAt": 1704067200000
100
90
  },
101
91
  "msg-supervisor-1": {
102
92
  "id": "msg-supervisor-1",
@@ -118,10 +108,6 @@
118
108
  ],
119
109
  "createdAt": 1704067201000,
120
110
  "updatedAt": 1704067201000,
121
- "meta": {
122
- "avatar": "supervisor",
123
- "title": "Supervisor"
124
- },
125
111
  "metadata": {
126
112
  "isSupervisor": true
127
113
  }
@@ -133,8 +119,7 @@
133
119
  "parentId": "msg-supervisor-1",
134
120
  "tool_call_id": "call_speak_1",
135
121
  "createdAt": 1704067202000,
136
- "updatedAt": 1704067202000,
137
- "meta": {}
122
+ "updatedAt": 1704067202000
138
123
  },
139
124
  "msg-agent-backend-1": {
140
125
  "id": "msg-agent-backend-1",
@@ -145,11 +130,7 @@
145
130
  "model": "gpt-4",
146
131
  "provider": "openai",
147
132
  "createdAt": 1704067205000,
148
- "updatedAt": 1704067205000,
149
- "meta": {
150
- "avatar": "backend-dev",
151
- "title": "Backend Developer"
152
- }
133
+ "updatedAt": 1704067205000
153
134
  }
154
135
  }
155
136
  }