symposium 2.3.13 → 2.4.1
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/Agent.js +12 -0
- package/Models/GrokModel.js +10 -0
- package/package.json +3 -3
package/Agent.js
CHANGED
|
@@ -188,6 +188,18 @@ ${context_string}
|
|
|
188
188
|
await this.log('user_message', content);
|
|
189
189
|
thread.addMessage('user', content);
|
|
190
190
|
|
|
191
|
+
return this.trigger(thread);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
async trigger(thread = null) {
|
|
195
|
+
if (!this.initialized)
|
|
196
|
+
throw new Error('Agent not initialized');
|
|
197
|
+
|
|
198
|
+
if (thread === null)
|
|
199
|
+
thread = uuid();
|
|
200
|
+
if (typeof thread !== 'object')
|
|
201
|
+
thread = await this.getThread(thread);
|
|
202
|
+
|
|
191
203
|
const emitter = new BufferedEventEmitter();
|
|
192
204
|
emitter.emit('start', thread);
|
|
193
205
|
|
package/Models/GrokModel.js
CHANGED
|
@@ -14,6 +14,16 @@ export default class GrokModel extends LegacyOpenAIModel {
|
|
|
14
14
|
tokens: 2000000,
|
|
15
15
|
tools: true,
|
|
16
16
|
}],
|
|
17
|
+
['grok-4-20-fast-reasoning', {
|
|
18
|
+
name: 'grok-4.20-beta-0309-reasoning',
|
|
19
|
+
tokens: 2000000,
|
|
20
|
+
tools: true,
|
|
21
|
+
}],
|
|
22
|
+
['grok-4-20-fast-non-reasoning', {
|
|
23
|
+
name: 'grok-4.20-beta-0309-non-reasoning',
|
|
24
|
+
tokens: 2000000,
|
|
25
|
+
tools: true,
|
|
26
|
+
}],
|
|
17
27
|
]);
|
|
18
28
|
}
|
|
19
29
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "symposium",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.4.1",
|
|
5
5
|
"description": "Agents",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": "Domenico Giambra",
|
|
8
8
|
"license": "ISC",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@anthropic-ai/sdk": "^0.
|
|
11
|
-
"groq-sdk": "^0.
|
|
10
|
+
"@anthropic-ai/sdk": "^0.79.0",
|
|
11
|
+
"groq-sdk": "^1.0.0",
|
|
12
12
|
"ollama": "^0.6.0",
|
|
13
13
|
"openai": "^6.0.0",
|
|
14
14
|
"tiktoken": "^1.0.10",
|