feat: adding variations for several frameworks to test at least openai + anthropic#139
feat: adding variations for several frameworks to test at least openai + anthropic#139constantinius wants to merge 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Unpinned anthropic version alongside pinned LangChain packages
- This is a real bug because @langchain/anthropic@latest now requires @langchain/core ^1.x while these templates pin core to 0.3.49, so I pinned @langchain/anthropic to 0.3.0 in the three flagged configs.
Or push these changes by commenting:
@cursor push 02d6605d7d
Preview (02d6605d7d)
diff --git a/src/runner/templates/agents/cloudflare/langgraph/config.json b/src/runner/templates/agents/cloudflare/langgraph/config.json
--- a/src/runner/templates/agents/cloudflare/langgraph/config.json
+++ b/src/runner/templates/agents/cloudflare/langgraph/config.json
@@ -14,7 +14,7 @@
},
{
"package": "@langchain/anthropic",
- "version": "latest"
+ "version": "0.3.0"
},
{
"package": "@langchain/core",
diff --git a/src/runner/templates/agents/node/langgraph/config.json b/src/runner/templates/agents/node/langgraph/config.json
--- a/src/runner/templates/agents/node/langgraph/config.json
+++ b/src/runner/templates/agents/node/langgraph/config.json
@@ -14,7 +14,7 @@
},
{
"package": "@langchain/anthropic",
- "version": "latest"
+ "version": "0.3.0"
},
{
"package": "@langchain/core",
diff --git a/src/runner/templates/llm/node/langchain/config.json b/src/runner/templates/llm/node/langchain/config.json
--- a/src/runner/templates/llm/node/langchain/config.json
+++ b/src/runner/templates/llm/node/langchain/config.json
@@ -15,7 +15,7 @@
},
{
"package": "@langchain/anthropic",
- "version": "latest"
+ "version": "0.3.0"
},
{
"package": "@langchain/core",This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e921377. Configure here.
| { | ||
| "package": "@langchain/anthropic", | ||
| "version": "latest" | ||
| }, |
There was a problem hiding this comment.
Unpinned anthropic version alongside pinned LangChain packages
Medium Severity
@langchain/anthropic is set to "latest" while sibling packages like @langchain/openai and @langchain/core are pinned to specific 0.3.x versions. If a new major version of @langchain/anthropic is released with incompatible peer dependency requirements for @langchain/core, npm install would fail or produce a broken dependency tree, causing all Anthropic provider test variants to break. Pinning @langchain/anthropic to a compatible version (like other LangChain packages) avoids this risk.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit e921377. Configure here.
🟡 AI SDK Integration Test ResultsStatus: 1 test fixed, 164 still failing Summary
✅ FixedThese tests were failing on main but are now passing:
🆕 New TestsPassing (80):
Failing (280): ❌ browser/langgraph :: Basic Agent Test (streaming, openai, graph)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (streaming, openai, langchain)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (streaming, openai, combined)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (streaming, openai, compiled)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (streaming, openai, custom-state)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (streaming, anthropic, graph)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (streaming, anthropic, langchain)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (streaming, anthropic, combined)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (streaming, anthropic, compiled)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (streaming, anthropic, custom-state)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (blocking, openai, graph)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (blocking, openai, langchain)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (blocking, openai, combined)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (blocking, openai, compiled)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (blocking, openai, custom-state)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (blocking, anthropic, graph)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (blocking, anthropic, langchain)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (blocking, anthropic, combined)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (blocking, anthropic, compiled)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Basic Agent Test (blocking, anthropic, custom-state)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (streaming, openai, graph)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (streaming, openai, langchain)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (streaming, openai, combined)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (streaming, openai, compiled)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (streaming, openai, custom-state)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (streaming, anthropic, graph)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (streaming, anthropic, langchain)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (streaming, anthropic, combined)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (streaming, anthropic, compiled)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (streaming, anthropic, custom-state)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (blocking, openai, graph)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (blocking, openai, langchain)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (blocking, openai, combined)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (blocking, openai, compiled)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (blocking, openai, custom-state)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (blocking, anthropic, graph)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (blocking, anthropic, langchain)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (blocking, anthropic, combined)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (blocking, anthropic, compiled)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Call Agent Test (blocking, anthropic, custom-state)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Error Agent Test (streaming, openai, graph)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Error Agent Test (streaming, openai, langchain)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Error Agent Test (streaming, openai, combined)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Error Agent Test (streaming, openai, compiled)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Error Agent Test (streaming, openai, custom-state)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Error Agent Test (streaming, anthropic, graph)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Error Agent Test (streaming, anthropic, langchain)Error: Environment setup failed: Command failed: npm install --no-save ❌ browser/langgraph :: Tool Error Agent Test (streaming, anthropic, combined)Error: Environment setup failed: Command failed: npm install --no-save |



Closes https://linear.app/getsentry/issue/TET-2164/add-variations-for-providers-for-the-higher-level-frameworks