LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-sdkschemaCron
    Class●Since v0.1

    Cron

    Represents a scheduled task.

    Copy
    Cron()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    cron_idstr
    assistant_idstr
    thread_idstr | None
    on_run_completedOnCompletionBehavior | None
    end_timedatetime | None
    schedulestr
    timezonestr | None
    created_atdatetime
    updated_atdatetime
    payloaddict
    user_idstr | None
    next_run_datedatetime | None
    metadatadict
    enabledbool
    attribute
    cron_id: str

    The ID of the cron.

    attribute
    assistant_id: str

    The ID of the assistant.

    attribute
    thread_id: str | None

    The ID of the thread.

    attribute
    on_run_completed: OnCompletionBehavior | None

    What to do with the thread after the run completes. Only applicable for stateless crons.

    attribute
    end_time: datetime | None

    The end date to stop running the cron.

    attribute
    schedule: str

    The schedule to run, cron format.

    attribute
    timezone: str | None

    IANA timezone for the cron schedule (e.g. 'America/New_York'). Defaults to null, which is treated as UTC.

    attribute
    created_at: datetime

    The time the cron was created.

    attribute
    updated_at: datetime

    The last time the cron was updated.

    attribute
    payload: dict

    The run payload to use for creating new run.

    attribute
    user_id: str | None

    The user ID of the cron.

    attribute
    next_run_date: datetime | None

    The next run date of the cron.

    attribute
    metadata: dict

    The metadata of the cron.

    attribute
    enabled: bool

    Whether the cron is enabled.