mirror of
https://github.com/hwchase17/langchain
synced 2024-11-11 19:11:02 +00:00
cc69976860
**Description:** Callback handler to integrate fiddler with langchain. This PR adds the following - 1. `FiddlerCallbackHandler` implementation into langchain/community 2. Example notebook `fiddler.ipynb` for usage documentation [Internal Tracker : FDL-14305] **Issue:** NA **Dependencies:** - Installation of langchain-community is unaffected. - Usage of FiddlerCallbackHandler requires installation of latest fiddler-client (2.5+) **Twitter handle:** @fiddlerlabs @behalder Co-authored-by: Barun Halder <barun@fiddler.ai>
33 lines
865 B
Python
33 lines
865 B
Python
from langchain_community.callbacks import __all__
|
|
|
|
EXPECTED_ALL = [
|
|
"AimCallbackHandler",
|
|
"ArgillaCallbackHandler",
|
|
"ArizeCallbackHandler",
|
|
"PromptLayerCallbackHandler",
|
|
"ArthurCallbackHandler",
|
|
"ClearMLCallbackHandler",
|
|
"CometCallbackHandler",
|
|
"ContextCallbackHandler",
|
|
"HumanApprovalCallbackHandler",
|
|
"InfinoCallbackHandler",
|
|
"MlflowCallbackHandler",
|
|
"LLMonitorCallbackHandler",
|
|
"OpenAICallbackHandler",
|
|
"LLMThoughtLabeler",
|
|
"StreamlitCallbackHandler",
|
|
"WandbCallbackHandler",
|
|
"WhyLabsCallbackHandler",
|
|
"get_openai_callback",
|
|
"wandb_tracing_enabled",
|
|
"FlyteCallbackHandler",
|
|
"SageMakerCallbackHandler",
|
|
"LabelStudioCallbackHandler",
|
|
"TrubricsCallbackHandler",
|
|
"FiddlerCallbackHandler",
|
|
]
|
|
|
|
|
|
def test_all_imports() -> None:
|
|
assert set(__all__) == set(EXPECTED_ALL)
|