LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coretracerslog_streamRunState
    Class●Since v0.1

    RunState

    State of the run.

    Copy
    RunState()

    Bases

    TypedDict

    Constructors

    constructor
    __init__
    NameType
    idstr
    streamed_outputlist[Any]
    final_outputAny | None
    namestr
    typestr
    logsdict[str, LogEntry]

    Attributes

    attribute
    id: str

    ID of the run.

    attribute
    streamed_output: list[Any]

    List of output chunks streamed by Runnable.stream()

    attribute
    final_output: Any | None

    Final output of the run, usually the result of aggregating (+) streamed_output.

    Updated throughout the run when supported by the Runnable.

    attribute
    name: str

    Name of the object being run.

    attribute
    type: str

    Type of the object being run, e.g. prompt, chain, llm, etc.

    attribute
    logs: dict[str, LogEntry]

    Map of run names to sub-runs.

    If filters were supplied, this list will contain only the runs that matched the filters.

    View source on GitHub