add_message() — langchain Function Reference
Architecture documentation for the add_message() function in test_runnable_events_v2.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a35a2b06_d230_78c7_e382_a3e274acf675["add_message()"] 7b02161f_a331_62af_61a1_d9e628a3f41e["InMemoryHistory"] a35a2b06_d230_78c7_e382_a3e274acf675 -->|defined in| 7b02161f_a331_62af_61a1_d9e628a3f41e ad3667ea_37f5_1191_d9e1_6ff2602f1259["test_runnable_with_message_history()"] ad3667ea_37f5_1191_d9e1_6ff2602f1259 -->|calls| a35a2b06_d230_78c7_e382_a3e274acf675 style a35a2b06_d230_78c7_e382_a3e274acf675 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_runnable_events_v2.py lines 1916–1918
def add_message(self, message: BaseMessage) -> None:
"""Add a self-created message to the store."""
self.messages.append(message)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does add_message() do?
add_message() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable_events_v2.py.
Where is add_message() defined?
add_message() is defined in libs/core/tests/unit_tests/runnables/test_runnable_events_v2.py at line 1916.
What calls add_message()?
add_message() is called by 1 function(s): test_runnable_with_message_history.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free