LogEntry#

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

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.