You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community/callbacks
Leonid Ganeline 791d59a2c8
community: `callbacks` guard_imports (#21173)
Issue: we have several helper functions to import third-party libraries
like import_uptrain in
[community.callbacks](https://api.python.langchain.com/en/latest/callbacks/langchain_community.callbacks.uptrain_callback.import_uptrain.html#langchain_community.callbacks.uptrain_callback.import_uptrain).
And we have core.utils.utils.guard_import that works exactly for this
purpose.
The import_<package> functions work inconsistently and rather be private
functions.
Change: replaced these functions with the guard_import function.

Related to #21133
4 months ago
..
streamlit community[patch]: docstrings update (#20301) 5 months ago
tracers community: `callbacks` guard_imports (#21173) 4 months ago
__init__.py multiple: Remove unnecessary Ruff suppression comments (#21050) 4 months ago
aim_callback.py community: `callbacks` guard_imports (#21173) 4 months ago
argilla_callback.py multiple: Remove unnecessary Ruff suppression comments (#21050) 4 months ago
arize_callback.py core[major]: On Tool End Observation Casting Fix (#18798) 6 months ago
arthur_callback.py core[major]: On Tool End Observation Casting Fix (#18798) 6 months ago
bedrock_anthropic_callback.py community[minor]: add bedrock anthropic callback for token usage counting (#19864) 5 months ago
clearml_callback.py community: `callbacks` guard_imports (#21173) 4 months ago
comet_ml_callback.py community: `callbacks` guard_imports (#21173) 4 months ago
confident_callback.py core[major]: On Tool End Observation Casting Fix (#18798) 6 months ago
context_callback.py community: `callbacks` guard_imports (#21173) 4 months ago
fiddler_callback.py community: `callbacks` guard_imports (#21173) 4 months ago
flyte_callback.py community: `callbacks` guard_imports (#21173) 4 months ago
human.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
infino_callback.py community: `callbacks` guard_imports (#21173) 4 months ago
labelstudio_callback.py community[patch]: update use of deprecated llm methods (#20393) 5 months ago
llmonitor_callback.py community[patch]: update use of deprecated llm methods (#20393) 5 months ago
manager.py community[minor]: add bedrock anthropic callback for token usage counting (#19864) 5 months ago
mlflow_callback.py community: `callbacks` guard_imports (#21173) 4 months ago
openai_info.py community: add gpt-4 pricing in callback (#20292) 5 months ago
promptlayer_callback.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
sagemaker_callback.py core[major]: On Tool End Observation Casting Fix (#18798) 6 months ago
trubrics_callback.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
uptrain_callback.py community: `callbacks` guard_imports (#21173) 4 months ago
utils.py community: `callbacks` guard_imports (#21173) 4 months ago
wandb_callback.py community: `callbacks` guard_imports (#21173) 4 months ago
whylabs_callback.py community: `callbacks` guard_imports (#21173) 4 months ago