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 00f9082d_cd51_6244_e43a_94a1958c6cd9["lc_attributes()"] de5a7878_b3fe_95d7_2575_7f534546dc1e["AIMessage"] 00f9082d_cd51_6244_e43a_94a1958c6cd9 -->|defined in| de5a7878_b3fe_95d7_2575_7f534546dc1e a01fc4ee_f27e_7d75_e7dc_dc592d4877c3["lc_attributes()"] a01fc4ee_f27e_7d75_e7dc_dc592d4877c3 -->|calls| 00f9082d_cd51_6244_e43a_94a1958c6cd9 a01fc4ee_f27e_7d75_e7dc_dc592d4877c3["lc_attributes()"] 00f9082d_cd51_6244_e43a_94a1958c6cd9 -->|calls| a01fc4ee_f27e_7d75_e7dc_dc592d4877c3 style 00f9082d_cd51_6244_e43a_94a1958c6cd9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/messages/ai.py lines 231–240
def lc_attributes(self) -> dict:
"""Attributes to be serialized.
Includes all attributes, even if they are derived from other initialization
arguments.
"""
return {
"tool_calls": self.tool_calls,
"invalid_tool_calls": self.invalid_tool_calls,
}
Domain
Subdomains
Defined In
Calls
Called By
Source
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 231.
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