@squidcloud/client
    Preparing search index...

    Interface AiAgentScheduleAutomation

    An automation that runs its agent on a cron schedule.

    interface AiAgentScheduleAutomation {
        agentId: string;
        createdAt: Date;
        cron: string;
        enabled: boolean;
        id: string;
        lastJobId?: string;
        lastRunAt?: Date;
        lastSkippedAt?: Date;
        lastSkipReason?: AiAgentAutomationSkipReason;
        name: string;
        nextRunAt?: Date;
        prompt: string;
        skippedRuns?: number;
        timeZone?: string;
        type: "schedule";
        updatedAt: Date;
    }

    Hierarchy

    • AiAgentAutomationBase
      • AiAgentScheduleAutomation
    Index
    agentId: string

    The agent the automation runs.

    createdAt: Date

    When the automation was created.

    cron: string

    A 5-field or 6-field (with seconds) cron expression that runs at most once a minute.

    enabled: boolean

    Whether the automation runs.

    id: string

    The automation ID, unique within the agent.

    lastJobId?: string

    The job of the last run, usable with the job API and as the jobId filter of the agent's audit log.

    lastRunAt?: Date

    When the automation last started a run.

    lastSkippedAt?: Date

    When the automation last skipped a run.

    Why the automation last skipped a run.

    name: string

    A display name.

    nextRunAt?: Date

    When the automation runs next. Set on read for an enabled automation.

    prompt: string

    The prompt the agent is run with.

    skippedRuns?: number

    Runs the automation was due to start and did not, since it was created.

    timeZone?: string

    The IANA time zone the cron expression is evaluated in. Defaults to UTC.

    type: "schedule"

    The automation kind.

    updatedAt: Date

    When the automation was last changed.