Background job processing for Agentium agents using BullMQ and Redis.
npm install @agentium/queue bullmq ioredisimport { Agent, openai } from "@agentium/core";
import { AgentQueue, AgentWorker } from "@agentium/queue";
const agent = new Agent({ name: "assistant", model: openai("gpt-4o") });
const connection = { host: "localhost", port: 6379 };
const queue = new AgentQueue({ connection });
const worker = new AgentWorker({ agents: { assistant: agent }, connection });
await queue.enqueueAgentRun({ agentName: "assistant", input: "Hello!" });Full docs at docs.agentium.in
Join the conversation on Discord.
MIT