-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path__init__.py
More file actions
26 lines (21 loc) · 995 Bytes
/
__init__.py
File metadata and controls
26 lines (21 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""
DEPRECATED: braintrust-langchain is now part of the main braintrust package.
Install `braintrust` and use `from braintrust.integrations.langchain import BraintrustCallbackHandler` instead.
This package now re-exports from `braintrust.integrations.langchain` for backward compatibility.
"""
import warnings
warnings.warn(
"braintrust-langchain is deprecated. The LangChain integration is now included in the main "
"'braintrust' package. Use 'from braintrust.integrations.langchain import BraintrustCallbackHandler' "
"instead. This package will be removed in a future release.",
DeprecationWarning,
stacklevel=2,
)
# Re-export public API from the new location for backward compatibility
from braintrust.integrations.langchain import ( # noqa: E402, F401
BraintrustCallbackHandler,
BraintrustTracer,
clear_global_handler,
set_global_handler,
)
__all__ = ["BraintrustCallbackHandler", "set_global_handler", "clear_global_handler", "BraintrustTracer"]