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-sdkauthtypesRunsCreate
    Class●Since v0.1

    RunsCreate

    Copy
    RunsCreate()

    Bases

    typing.TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    assistant_idUUID | None
    thread_idUUID | None
    run_idUUID | None
    statusRunStatus | None
    metadataMetadataInput
    prevent_insert_if_inflightbool
    multitask_strategyMultitaskStrategy
    if_not_existsIfNotExists
    after_secondsint
    kwargsdict[str, typing.Any]
    actiontyping.Literal['interrupt', 'rollback'] | None
    attribute
    assistant_id: UUID | None

    typing.Optional assistant ID to use for this run.

    attribute
    thread_id: UUID | None

    typing.Optional thread ID to use for this run.

    attribute
    run_id: UUID | None

    typing.Optional run ID to use for this run.

    attribute
    status: RunStatus | None

    typing.Optional status for this run.

    attribute
    metadata: MetadataInput

    typing.Optional metadata for the run.

    attribute
    prevent_insert_if_inflight: bool

    Prevent inserting a new run if one is already in flight.

    attribute
    multitask_strategy: MultitaskStrategy

    Multitask strategy for this run.

    attribute
    if_not_exists: IfNotExists

    IfNotExists for this run.

    attribute
    after_seconds: int

    Number of seconds to wait before creating the run.

    attribute
    kwargs: dict[str, typing.Any]

    Keyword arguments to pass to the run.

    attribute
    action: typing.Literal['interrupt', 'rollback'] | None

    Action to take if updating an existing run.

    Payload for creating a run.

    Examples
    create_params = {
        "assistant_id": UUID("123e4567-e89b-12d3-a456-426614174000"),
        "thread_id": UUID("123e4567-e89b-12d3-a456-426614174001"),
        "run_id": UUID("123e4567-e89b-12d3-a456-426614174002"),
        "status": "pending",
        "metadata": {"owner": "user123"},
        "prevent_insert_if_inflight": True,
        "multitask_strategy": "reject",
        "if_not_exists": "create",
        "after_seconds": 10,
        "kwargs": {"key": "value"},
        "action": "interrupt"
    }