mirror of
https://github.com/hwchase17/langchain.git
synced 2026-03-18 11:07:36 +00:00
Defer `langsmith` and tracer imports in `callbacks/manager.py` and `runnables/config.py` from module-level to function-level. These imports pull in the full `langsmith` package (~132ms) at import time but are only used inside `_configure()`, `trace_as_chain_group()`, `_set_config_context()`, and `set_config_context()` — none of which run during module initialization.