Skip to content

Fix Missing ChatCompletion events in LangChain when using MCP - #1800

Merged
lrafeei merged 39 commits into
mainfrom
missing-chat-completion-langchain-MCP
Jul 27, 2026
Merged

Fix Missing ChatCompletion events in LangChain when using MCP#1800
lrafeei merged 39 commits into
mainfrom
missing-chat-completion-langchain-MCP

Conversation

@lrafeei

@lrafeei lrafeei commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

This PR resolves the issue of missing ChatCompletion events when using LangChain/LangGraph with MCP tools, specifically when the response format is not the default JSON.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 9 0 0 1.07s
✅ MARKDOWN markdownlint 7 0 0 0 1.44s
✅ PYTHON ruff 1088 0 0 0 1.05s
✅ PYTHON ruff-format 1088 0 0 0 0.43s
✅ YAML prettier 23 0 0 0 1.74s
✅ YAML v8r 23 0 0 6.28s
✅ YAML yamllint 23 0 0 0.81s

Notices

📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining SECURITY_SUGGESTIONS: false)

See detailed reports in MegaLinter artifacts

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@mergify mergify Bot added the tests-failing Tests failing in CI. label Jul 22, 2026
@lrafeei
lrafeei force-pushed the missing-chat-completion-langchain-MCP branch from 9985f59 to 1633c2c Compare July 22, 2026 00:12
@codecov-commenter

codecov-commenter commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.07%. Comparing base (2778c17) to head (3a83b9c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1800      +/-   ##
==========================================
- Coverage   82.07%   82.07%   -0.01%     
==========================================
  Files         217      217              
  Lines       26864    26867       +3     
  Branches     4255     4254       -1     
==========================================
+ Hits        22048    22050       +2     
- Misses       3341     3343       +2     
+ Partials     1475     1474       -1     

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lrafeei
lrafeei force-pushed the missing-chat-completion-langchain-MCP branch from f6083d0 to c5fce16 Compare July 22, 2026 18:13
@lrafeei
lrafeei force-pushed the missing-chat-completion-langchain-MCP branch from ff41070 to 04665c3 Compare July 22, 2026 21:57
@lrafeei
lrafeei force-pushed the missing-chat-completion-langchain-MCP branch from 0cfc01e to b8fc8ce Compare July 22, 2026 23:35
@lrafeei
lrafeei marked this pull request as ready for review July 23, 2026 03:06
@lrafeei
lrafeei requested a review from a team as a code owner July 23, 2026 03:06
Comment thread newrelic/hooks/mlmodel_gemini.py
Comment thread tests/mlmodel_gemini/langchain_integration/conftest.py Outdated
@mergify mergify Bot removed the tests-failing Tests failing in CI. label Jul 23, 2026
@mergify mergify Bot added the tests-failing Tests failing in CI. label Jul 23, 2026
@TimPansino TimPansino removed this from the v13.3.0 milestone Jul 23, 2026
@mergify mergify Bot removed the tests-failing Tests failing in CI. label Jul 24, 2026
@lrafeei
lrafeei requested a review from TimPansino July 24, 2026 01:20
@mergify mergify Bot added the tests-failing Tests failing in CI. label Jul 27, 2026
Comment thread newrelic/hooks/mlmodel_gemini.py
Comment thread tests/testing_support/fixture/vcr.py Outdated
@mergify mergify Bot removed the tests-failing Tests failing in CI. label Jul 27, 2026
@mergify

mergify Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@lrafeei
lrafeei merged commit b54cd2d into main Jul 27, 2026
65 checks passed
@lrafeei
lrafeei deleted the missing-chat-completion-langchain-MCP branch July 27, 2026 21:53
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.

5 participants