agentskit.js

CronJob

Auto-generated API reference for CronJob.

Interface: CronJob<TContext>

Defined in: background.ts:14

#Type Parameters

#TContext

TContext = unknown

#Properties

#agent

agent: AgentHandle<TContext>

Defined in: background.ts:17


#context?

optional context?: TContext

Defined in: background.ts:20


#runOnStart?

optional runOnStart?: boolean

Defined in: background.ts:22

Run the job exactly once on start before the first tick.


#schedule

schedule: string

Defined in: background.ts:16

Standard 5-field cron (* * * * *) or an every:&lt;ms> shortcut.


#task?

optional task?: string | ((now) => string)

Defined in: background.ts:19

Task the agent receives each fire. Default: scheduled: &lt;name>.

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page