Background agents
Trigger runs on a schedule or HTTP webhook.
#Cron scheduler
import { createRuntime, createCronScheduler } from '@agentskit/runtime'
const runtime = createRuntime({ adapter, tools })
const scheduler = createCronScheduler({ runtime })
scheduler.add({
id: 'daily-digest',
schedule: '0 9 * * *',
task: 'Summarize yesterday\'s PRs',
})
scheduler.start()Zero-dep cron: parseSchedule + cronMatches are exported for custom
triggers.
#Webhooks
import { createRuntime, createWebhookHandler } from '@agentskit/runtime'
const handler = createWebhookHandler({
runtime,
map: (req) => ({ task: `Handle ${req.body.event}` }),
})
// Wire into Next.js / Express / Hono / Bun / Deno
export const POST = (req) => handler(req)#Related
Explore nearby
- PeerAgents
Everything that runs the loop β runtime, tools, skills, delegation, durable execution, topologies, background agents, HITL, self-debug.
- PeerRuntime
Execution engine for autonomous agents β runs a ReAct loop (observe, think, act) until final answer or step limit.
- PeerMulti-Agent Delegation
Coordinate multiple specialist agents from a parent agent using directed delegation.