@cogitator-ai/worker 0.9.9 → 0.9.11
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/README.md +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -133,7 +133,7 @@ interface QueueConfig {
|
|
|
133
133
|
|
|
134
134
|
**Agent Jobs:**
|
|
135
135
|
|
|
136
|
-
The simplest way is to serialize an agent you already have. `serializeAgent` writes it in the agent wire format of `@cogitator-ai/core` (`toAgentWire`), shared by agent, workflow and swarm jobs and by distributed swarm turns. It keeps the whole configuration (model and provider, instructions, sampling, stop sequences, reasoning effort, response format, iteration limit, timeout), the tool schemas and every agent it can hand over to, and turns a Zod response schema into JSON Schema, so the worker validates the structured answer the same way an in-process run does. A config with a key the worker does not know is refused rather than run without that setting:
|
|
136
|
+
The simplest way is to serialize an agent you already have. `serializeAgent` writes it in the agent wire format of `@cogitator-ai/core` (`toAgentWire`), shared by agent, workflow and swarm jobs and by distributed swarm turns. It keeps the whole configuration (model and provider, fallback models, instructions, sampling, stop sequences, reasoning effort, response format, iteration limit, timeout), the tool schemas and every agent it can hand over to, and turns a Zod response schema into JSON Schema, so the worker validates the structured answer the same way an in-process run does. A config with a key the worker does not know is refused rather than run without that setting:
|
|
137
137
|
|
|
138
138
|
```typescript
|
|
139
139
|
import { Agent } from '@cogitator-ai/core';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cogitator-ai/worker",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.11",
|
|
4
4
|
"description": "Distributed job queue for Cogitator agent execution",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cogitator",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"node": ">=22.12.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cogitator-ai/core": "0.
|
|
33
|
-
"@cogitator-ai/swarms": "0.12.
|
|
34
|
-
"@cogitator-ai/types": "0.
|
|
32
|
+
"@cogitator-ai/core": "0.44.0",
|
|
33
|
+
"@cogitator-ai/swarms": "0.12.11",
|
|
34
|
+
"@cogitator-ai/types": "0.46.0",
|
|
35
35
|
"bullmq": "^6.3.11",
|
|
36
36
|
"nanoid": "^6.0.1",
|
|
37
37
|
"zod": "^4.6.5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@cogitator-ai/test-utils": "0.3.
|
|
40
|
+
"@cogitator-ai/test-utils": "0.3.5",
|
|
41
41
|
"ioredis": "^6.0.0",
|
|
42
42
|
"typescript": "^6.0.3",
|
|
43
43
|
"vitest": "^5.0.3"
|