Closed
Conversation
command-r-plus resolves to command-r-plus-04-2024 which was deprecated 2025-09-15, causing flaky tool calling failures. Patch the cloned langchain-cohere tests to use command-a-03-2025 instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fern-support
added a commit
that referenced
this pull request
Mar 12, 2026
The test_langchain_tool_calling_agent test uses deprecated models and hits the live API without temperature=0, causing non-deterministic failures unrelated to SDK changes. See PR #738 for investigation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fern-support
added a commit
that referenced
this pull request
Mar 12, 2026
Instead of skipping the entire langchain-cohere job, deselect only the single flaky test. The remaining 39 integration tests and 98 unit tests still run. See PR #738 for investigation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Investigation into the failing
test-langchain-cohereCI job.Findings
The
test_langchain_tool_calling_agentintegration test in langchain-cohere is failing because the model returns empty tool call arguments{}for a tool that requires aninputparameter, causing a Pydantic validation error.Root causes investigated:
command-r-plus, which resolves tocommand-r-plus-04-2024(deprecated Sept 15, 2025)command-a-03-2025— same failuretemperature=0setting, making it inherently non-deterministicReproduction: A whitespace-only change on a fresh branch produces the same failure, confirming it's unrelated to any SDK code changes.
Recommendation
We should skip the
test-langchain-cohereCI job (or mark it ascontinue-on-error) until the upstream test is fixed. The job clones langchain-cohere at HEAD and runs its integration tests against the live API — we have no control over its stability. The issue should be reported to https://github.com/langchain-ai/langchain-cohere.