Home / File/ run_info.py — langchain Source File

run_info.py — langchain Source File

Architecture documentation for run_info.py, a python file in the langchain codebase. 2 imports, 0 dependents.

File python 2 imports 1 classes

Entity Profile

Dependency Diagram

graph LR
  cb9639b4_de0e_13a2_6060_15841257ef33["run_info.py"]
  8dfa0cac_d802_3ccd_f710_43a5e70da3a5["uuid"]
  cb9639b4_de0e_13a2_6060_15841257ef33 --> 8dfa0cac_d802_3ccd_f710_43a5e70da3a5
  6e58aaea_f08e_c099_3cc7_f9567bfb1ae7["pydantic"]
  cb9639b4_de0e_13a2_6060_15841257ef33 --> 6e58aaea_f08e_c099_3cc7_f9567bfb1ae7
  style cb9639b4_de0e_13a2_6060_15841257ef33 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"""`RunInfo` class."""

from __future__ import annotations

from uuid import UUID

from pydantic import BaseModel


class RunInfo(BaseModel):
    """Class that contains metadata for a single execution of a chain or model.

    Defined for backwards compatibility with older versions of `langchain_core`.

    !!! warning "This model will likely be deprecated in the future."

    Users can acquire the `run_id` information from callbacks or via `run_id`
    information present in the `astream_event` API (depending on the use case).
    """

    run_id: UUID
    """A unique identifier for the model or chain run."""

Classes

Dependencies

  • pydantic
  • uuid

Frequently Asked Questions

What does run_info.py do?
run_info.py is a source file in the langchain codebase, written in python.
What does run_info.py depend on?
run_info.py imports 2 module(s): pydantic, uuid.
Where is run_info.py in the architecture?
run_info.py is located at libs/core/langchain_core/outputs/run_info.py (directory: libs/core/langchain_core/outputs).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free