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

    Chat LangChain

    What can I help with?

    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 v1.8

    RunState

    Copy
    RunState()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    idstr
    streamed_outputlist[Any]
    final_outputAny | None
    namestr
    typestr
    logsdict[str, LogEntry]
    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.

    State of the run.