_AsyncHttpxClientWrapper Class — langchain Architecture
Architecture documentation for the _AsyncHttpxClientWrapper class in _client_utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 8faee75f_16c9_424d_f663_c7a7db2111fd["_AsyncHttpxClientWrapper"] 15814c96_373f_f86b_f2fa_7830cc4d0ae3["_client_utils.py"] 8faee75f_16c9_424d_f663_c7a7db2111fd -->|defined in| 15814c96_373f_f86b_f2fa_7830cc4d0ae3 f5f1470c_7344_8e1c_d193_faff8c9c1fb0["__del__()"] 8faee75f_16c9_424d_f663_c7a7db2111fd -->|method| f5f1470c_7344_8e1c_d193_faff8c9c1fb0
Relationship Graph
Source Code
libs/partners/openai/langchain_openai/chat_models/_client_utils.py lines 35–46
class _AsyncHttpxClientWrapper(openai.DefaultAsyncHttpxClient):
"""Borrowed from openai._base_client."""
def __del__(self) -> None:
if self.is_closed:
return
try:
# TODO(someday): support non asyncio runtimes here
asyncio.get_running_loop().create_task(self.aclose())
except Exception: # noqa: S110
pass
Source
Frequently Asked Questions
What is the _AsyncHttpxClientWrapper class?
_AsyncHttpxClientWrapper is a class in the langchain codebase, defined in libs/partners/openai/langchain_openai/chat_models/_client_utils.py.
Where is _AsyncHttpxClientWrapper defined?
_AsyncHttpxClientWrapper is defined in libs/partners/openai/langchain_openai/chat_models/_client_utils.py at line 35.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free