@radaros/queue 0.3.12 → 0.3.13
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 +32 -0
- package/package.json +17 -2
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @radaros/queue
|
|
2
|
+
|
|
3
|
+
Background job processing for RadarOS agents using BullMQ and Redis.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @radaros/queue bullmq ioredis
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Agent, openai } from "@radaros/core";
|
|
15
|
+
import { AgentQueue, AgentWorker } from "@radaros/queue";
|
|
16
|
+
|
|
17
|
+
const agent = new Agent({ name: "assistant", model: openai("gpt-4o") });
|
|
18
|
+
const connection = { host: "localhost", port: 6379 };
|
|
19
|
+
|
|
20
|
+
const queue = new AgentQueue({ connection });
|
|
21
|
+
const worker = new AgentWorker({ agents: { assistant: agent }, connection });
|
|
22
|
+
|
|
23
|
+
await queue.enqueueAgentRun({ agentName: "assistant", input: "Hello!" });
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Documentation
|
|
27
|
+
|
|
28
|
+
Full docs at [radaros.mintlify.dev](https://radaros.mintlify.dev)
|
|
29
|
+
|
|
30
|
+
## License
|
|
31
|
+
|
|
32
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@radaros/queue",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
4
|
+
"description": "Background job processing for RadarOS agents using BullMQ",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/xhipment/agentOs.git",
|
|
9
|
+
"directory": "packages/queue"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"ai",
|
|
13
|
+
"agents",
|
|
14
|
+
"queue",
|
|
15
|
+
"bullmq",
|
|
16
|
+
"redis",
|
|
17
|
+
"background-jobs"
|
|
18
|
+
],
|
|
4
19
|
"type": "module",
|
|
5
20
|
"main": "./dist/index.js",
|
|
6
21
|
"types": "./dist/index.d.ts",
|
|
@@ -24,7 +39,7 @@
|
|
|
24
39
|
"typescript": "^5.6.0"
|
|
25
40
|
},
|
|
26
41
|
"peerDependencies": {
|
|
27
|
-
"@radaros/core": "^0.3.
|
|
42
|
+
"@radaros/core": "^0.3.13",
|
|
28
43
|
"bullmq": "^5.0.0",
|
|
29
44
|
"ioredis": "^5.0.0"
|
|
30
45
|
},
|