RunState#

class langchain_core.tracers.log_stream.RunState[source]#

State of the run.

id: str#

ID of the run.

streamed_output: list[Any]#

List of output chunks streamed by Runnable.stream()

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.

name: str#

Name of the object being run.

type: str#

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

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.