LogEntry Class — langchain Architecture
Architecture documentation for the LogEntry class in log_stream.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD abcb6a68_e641_3adb_fdf2_4bc281259de0["LogEntry"] bd3b753a_7a64_0c77_8d7a_afcce4658003["log_stream.py"] abcb6a68_e641_3adb_fdf2_4bc281259de0 -->|defined in| bd3b753a_7a64_0c77_8d7a_afcce4658003
Relationship Graph
Source Code
libs/core/langchain_core/tracers/log_stream.py lines 40–80
class LogEntry(TypedDict):
"""A single entry in the run log."""
id: str
"""ID of the sub-run."""
name: str
"""Name of the object being run."""
type: str
"""Type of the object being run, eg. prompt, chain, llm, etc."""
tags: list[str]
"""List of tags for the run."""
metadata: dict[str, Any]
"""Key-value pairs of metadata for the run."""
start_time: str
"""ISO-8601 timestamp of when the run started."""
streamed_output_str: list[str]
"""List of LLM tokens streamed by this run, if applicable."""
streamed_output: list[Any]
"""List of output chunks streamed by this run, if available."""
inputs: NotRequired[Any | None]
"""Inputs to this run. Not available currently via `astream_log`."""
final_output: Any | None
"""Final output of this run.
Only available after the run has finished successfully.
"""
end_time: str | None
"""ISO-8601 timestamp of when the run ended.
Only available after the run has finished.
"""
Source
Frequently Asked Questions
What is the LogEntry class?
LogEntry is a class in the langchain codebase, defined in libs/core/langchain_core/tracers/log_stream.py.
Where is LogEntry defined?
LogEntry is defined in libs/core/langchain_core/tracers/log_stream.py at line 40.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free