OptionalproviderId: TSchedulerProviderOptionalcandidate: Agent | AccessCandidateAdd or update a scheduled job. If a job with the same ID exists, it will be updated.
Unique identifier for the job
Job instance with execution function and metadata
Schedule definition (interval or cron)
Promise that resolves when the job is scheduled
Schedule an agent skill execution with chainable syntax. Requires an agent to be associated with this scheduler instance.
Name of the skill to execute
Optionalargs: any[] | Record<string, any>Arguments to pass to the skill
Optionalmetadata: IJobMetadataOptional job metadata (name, description, retryOnFailure, etc.)
SchedulerJobBuilder that can be chained with .every() or .cron()
Get details of a specific scheduled job.
Unique identifier of the job
Promise that resolves to the job details, or undefined if not found
ProtectedinitProtectedinitSchedule an agent prompt execution with chainable syntax. Requires an agent to be associated with this scheduler instance.
The prompt text to send to the agent
Optionalmetadata: IJobMetadataOptional job metadata (name, description, retryOnFailure, etc.)
SchedulerJobBuilder that can be chained with .every() or .cron()
Schedule an agent trigger execution with chainable syntax. Requires an agent to be associated with this scheduler instance.
Name of the trigger to execute
Optionalmetadata: IJobMetadataOptional job metadata (name, description, retryOnFailure, etc.)
SchedulerJobBuilder that can be chained with .every() or .cron()
SDK wrapper for Scheduler operations. Provides a simplified interface for scheduling and managing jobs.
Example