Skip to content

fix: langchain on_chain_start with_kwargs name and serialised is none #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2025

Conversation

andriisoldatenko
Copy link
Contributor

@andriisoldatenko andriisoldatenko commented May 23, 2025

@andriisoldatenko andriisoldatenko requested a review from a team as a code owner May 23, 2025 14:21
Copy link

codecov bot commented May 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.64%. Comparing base (12ad78c) to head (1d6ca57).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #138   +/-   ##
=======================================
  Coverage   78.64%   78.64%           
=======================================
  Files          36       36           
  Lines        2664     2664           
=======================================
  Hits         2095     2095           
  Misses        569      569           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -262,7 +262,7 @@ def on_chain_start(
) -> Any:
"""Langchain callback when a chain starts."""
node_type = "chain"
node_name = self._get_node_name(node_type, serialized)
node_name = self._get_node_name(node_type, serialized) if serialized else kwargs.get("name", "Chain")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andriisoldatenko andriisoldatenko requested review from ajaynayak, sid2harthgupta and a team May 23, 2025 14:33
@sid2harthgupta
Copy link

Thanks for the fix, @andriisoldatenko

@andriisoldatenko andriisoldatenko merged commit 132955c into main May 23, 2025
21 checks passed
@andriisoldatenko andriisoldatenko deleted the fixup-langchain-handler-names branch May 23, 2025 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants