Home / Function/ lc_attributes() — langchain Function Reference

lc_attributes() — langchain Function Reference

Architecture documentation for the lc_attributes() function in ai.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  a01fc4ee_f27e_7d75_e7dc_dc592d4877c3["lc_attributes()"]
  0998183a_ee20_cc02_d37b_948998ae74b7["AIMessageChunk"]
  a01fc4ee_f27e_7d75_e7dc_dc592d4877c3 -->|defined in| 0998183a_ee20_cc02_d37b_948998ae74b7
  00f9082d_cd51_6244_e43a_94a1958c6cd9["lc_attributes()"]
  00f9082d_cd51_6244_e43a_94a1958c6cd9 -->|calls| a01fc4ee_f27e_7d75_e7dc_dc592d4877c3
  00f9082d_cd51_6244_e43a_94a1958c6cd9["lc_attributes()"]
  a01fc4ee_f27e_7d75_e7dc_dc592d4877c3 -->|calls| 00f9082d_cd51_6244_e43a_94a1958c6cd9
  style a01fc4ee_f27e_7d75_e7dc_dc592d4877c3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/messages/ai.py lines 434–438

    def lc_attributes(self) -> dict:
        return {
            "tool_calls": self.tool_calls,
            "invalid_tool_calls": self.invalid_tool_calls,
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does lc_attributes() do?
lc_attributes() is a function in the langchain codebase, defined in libs/core/langchain_core/messages/ai.py.
Where is lc_attributes() defined?
lc_attributes() is defined in libs/core/langchain_core/messages/ai.py at line 434.
What does lc_attributes() call?
lc_attributes() calls 1 function(s): lc_attributes.
What calls lc_attributes()?
lc_attributes() is called by 1 function(s): lc_attributes.

Analyze Your Own Codebase

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

Try Supermodel Free