UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

37 lines (36 loc) • 1.11 kB
/** * Type definitions for the NeuroLink TaskManager system. * * TaskManager provides scheduled and self-running task capabilities, * enabling AI agents to execute prompts on cron, interval, or one-shot schedules. */ // ── Defaults ──────────────────────────────────────────── const THIRTY_DAYS_MS = 30 * 24 * 60 * 60 * 1000; const SEVEN_DAYS_MS = 7 * 24 * 60 * 60 * 1000; export const TASK_DEFAULTS = { enabled: true, maxTasks: 100, backend: "bullmq", mode: "isolated", timeout: 120_000, maxConcurrentRuns: 5, maxRunLogs: 2000, maxHistoryEntries: 200, tools: true, retry: { maxAttempts: 3, backoffMs: [30_000, 60_000, 300_000], }, storePath: ".neurolink/tasks/tasks.json", logsPath: ".neurolink/tasks/runs/", redis: { host: "localhost", port: 6379, }, retention: { completedTTL: THIRTY_DAYS_MS, failedTTL: SEVEN_DAYS_MS, cancelledTTL: SEVEN_DAYS_MS, runLogTTL: THIRTY_DAYS_MS, }, };