[PR #3939] [CLOSED] fix format function for Anthropic provider #4469

Closed
opened 2026-02-22 18:35:53 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3939
Author: @AsadiR
Created: 6/3/2025
Status: Closed

Base: masterHead: 3938-nested-params-in-input-scheme-crash


📝 Commits (2)

  • 23a988b fix format function for Anthropic provider
  • 275b9a1 Merge branch 'master' into 3938-nested-params-in-input-scheme-crash

📊 Changes

1 file changed (+9 additions, -8 deletions)

View changed files

📝 server/utils/agents/aibitat/providers/anthropic.js (+9 -8)

📄 Description

[x] fix

Relevant Issues

resolves #3938

What is in this change?

This pull request fixes a bug where Anthropic agents would crash when calling MCP server endpoints that have nested parameters in their input_schema. With this change, the agent now correctly handles nested input parameters and does not crash. The logic for parsing input_schema was updated to support nested objects.

Additional Information

Tested locally on both flat and nested parameter endpoints. No changes were made to output schema handling. Lint and Docker build pass.

Developer Validations

[x] I ran yarn lint from the root of the repo & committed changes
[x] I have tested my code functionality


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/3939 **Author:** [@AsadiR](https://github.com/AsadiR) **Created:** 6/3/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `3938-nested-params-in-input-scheme-crash` --- ### 📝 Commits (2) - [`23a988b`](https://github.com/Mintplex-Labs/anything-llm/commit/23a988b00d96ca2f6abe8d7d0d5a9edcadf1e256) fix format function for Anthropic provider - [`275b9a1`](https://github.com/Mintplex-Labs/anything-llm/commit/275b9a1616a4831cb19e628c3a7a35574230c28c) Merge branch 'master' into 3938-nested-params-in-input-scheme-crash ### 📊 Changes **1 file changed** (+9 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/agents/aibitat/providers/anthropic.js` (+9 -8) </details> ### 📄 Description [x] fix Relevant Issues resolves #3938 What is in this change? This pull request fixes a bug where Anthropic agents would crash when calling MCP server endpoints that have nested parameters in their input_schema. With this change, the agent now correctly handles nested input parameters and does not crash. The logic for parsing input_schema was updated to support nested objects. Additional Information Tested locally on both flat and nested parameter endpoints. No changes were made to output schema handling. Lint and Docker build pass. Developer Validations [x] I ran yarn lint from the root of the repo & committed changes [x] I have tested my code functionality --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:53 -05:00
yindo closed this issue 2026-02-22 18:35:54 -05:00
yindo changed title from [PR #3939] fix format function for Anthropic provider to [PR #3939] [CLOSED] fix format function for Anthropic provider 2026-06-05 15:18:43 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4469