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-sdkauthtypesCronsCreate
    Classā—Since v0.1

    CronsCreate

    Copy
    CronsCreate()

    Bases

    typing.TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    payloaddict[str, typing.Any]
    schedulestr
    cron_idUUID | None
    thread_idUUID | None
    user_idstr | None
    end_timedatetime | None
    attribute
    payload: dict[str, typing.Any]

    Payload for the cron job.

    attribute
    schedule: str

    Schedule for the cron job.

    attribute
    cron_id: UUID | None

    typing.Optional unique identifier for the cron job.

    attribute
    thread_id: UUID | None

    typing.Optional thread ID to use for this cron job.

    attribute
    user_id: str | None

    typing.Optional user ID to use for this cron job.

    attribute
    end_time: datetime | None

    typing.Optional end time for the cron job.

    Payload for creating a cron job.

    Examples
    create_params = {
        "payload": {"key": "value"},
        "schedule": "0 0 * * *",
        "cron_id": UUID("123e4567-e89b-12d3-a456-426614174000"),
        "thread_id": UUID("123e4567-e89b-12d3-a456-426614174001"),
        "user_id": "user123",
        "end_time": datetime(2024, 3, 16, 10, 0, 0)
    }