Home / Function/ _identifying_params() — langchain Function Reference

_identifying_params() — langchain Function Reference

Architecture documentation for the _identifying_params() function in custom_chat_model.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  1c024976_5d02_41e2_d92a_8da264f528fd["_identifying_params()"]
  827d4990_b3c8_3ba7_bcd4_0a554daa3db4["ChatParrotLink"]
  1c024976_5d02_41e2_d92a_8da264f528fd -->|defined in| 827d4990_b3c8_3ba7_bcd4_0a554daa3db4
  style 1c024976_5d02_41e2_d92a_8da264f528fd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/standard-tests/tests/unit_tests/custom_chat_model.py lines 176–188

    def _identifying_params(self) -> dict[str, Any]:
        """Return a dictionary of identifying parameters.

        This information is used by the LangChain callback system, which
        is used for tracing purposes make it possible to monitor LLMs.
        """
        return {
            # The model name allows users to specify custom token counting
            # rules in LLM monitoring applications (e.g., in LangSmith users
            # can provide per token pricing for their model and monitor
            # costs for the given LLM.)
            "model_name": self.model_name,
        }

Domain

Subdomains

Frequently Asked Questions

What does _identifying_params() do?
_identifying_params() is a function in the langchain codebase, defined in libs/standard-tests/tests/unit_tests/custom_chat_model.py.
Where is _identifying_params() defined?
_identifying_params() is defined in libs/standard-tests/tests/unit_tests/custom_chat_model.py at line 176.

Analyze Your Own Codebase

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

Try Supermodel Free