Home / Function/ aclear() — langchain Function Reference

aclear() — langchain Function Reference

Architecture documentation for the aclear() function in chat_history.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  22b770a5_2737_85c2_1e37_f1f83e6f5809["aclear()"]
  bafcb99b_bf29_77cc_2ba1_06c40c54e908["BaseChatMessageHistory"]
  22b770a5_2737_85c2_1e37_f1f83e6f5809 -->|defined in| bafcb99b_bf29_77cc_2ba1_06c40c54e908
  ab857f6e_1c4c_77ed_f91e_a23c51c57fd5["aclear()"]
  ab857f6e_1c4c_77ed_f91e_a23c51c57fd5 -->|calls| 22b770a5_2737_85c2_1e37_f1f83e6f5809
  ab857f6e_1c4c_77ed_f91e_a23c51c57fd5["aclear()"]
  22b770a5_2737_85c2_1e37_f1f83e6f5809 -->|calls| ab857f6e_1c4c_77ed_f91e_a23c51c57fd5
  style 22b770a5_2737_85c2_1e37_f1f83e6f5809 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/chat_history.py lines 193–195

    async def aclear(self) -> None:
        """Async remove all messages from the store."""
        await run_in_executor(None, self.clear)

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free