[PR #5140] [MERGED] Add automatic chat mode with native tool calling support #5319

Closed
opened 2026-06-05 15:20:57 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5140
Author: @timothycarambat
Created: 3/4/2026
Status: Merged
Merged: 3/4/2026
Merged by: @timothycarambat

Base: masterHead: automatic-mode


📝 Commits (2)

  • e10b8d7 Add automatic chat mode with native tool calling support
  • 7fc010d Merge branch 'master' into automatic-mode

📊 Changes

47 files changed (+551 additions, -263 deletions)

View changed files

📝 extras/translator/index.mjs (+77 -8)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/AgentMenu/index.jsx (+0 -28)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx (+20 -11)
📝 frontend/src/components/WorkspaceChat/ChatContainer/index.jsx (+2 -0)
📝 frontend/src/locales/ar/common.js (+11 -7)
📝 frontend/src/locales/cs/common.js (+11 -7)
📝 frontend/src/locales/da/common.js (+11 -7)
📝 frontend/src/locales/de/common.js (+11 -7)
📝 frontend/src/locales/en/common.js (+10 -7)
📝 frontend/src/locales/es/common.js (+11 -9)
📝 frontend/src/locales/et/common.js (+11 -7)
📝 frontend/src/locales/fa/common.js (+11 -7)
📝 frontend/src/locales/fr/common.js (+11 -8)
📝 frontend/src/locales/he/common.js (+11 -7)
📝 frontend/src/locales/it/common.js (+10 -7)
📝 frontend/src/locales/ja/common.js (+11 -7)
📝 frontend/src/locales/ko/common.js (+11 -7)
📝 frontend/src/locales/lv/common.js (+11 -7)
📝 frontend/src/locales/nl/common.js (+11 -7)
📝 frontend/src/locales/pl/common.js (+11 -8)

...and 27 more files

📄 Description

Pull Request Type

  • feat (New feature)
  • 🐛 fix (Bug fix)
  • ♻️ refactor (Code refactoring without changing behavior)
  • 💄 style (UI style changes)
  • 🔨 chore (Build, CI, maintenance)
  • 📝 docs (Documentation updates)

Relevant Issues

closes #3483
resolves #4932
resolves #4509
connect #5068 (change when complete)

Description

Introduces a new automatic chat mode (now the default) that automatically invokes tools when the provider supports native tool calling.

  • Conditionally shows/hides the @agent command based on whether native tooling is available in the prompt input
  • Update all locale translations with new mode descriptions

Visuals (if applicable)

Additional Information

  • Add supportsNativeToolCalling() to AI providers (OpenAI, Anthropic, Azure always support; others opt-in via ENV)
  • Enhance translator to preserve Trans component tags
  • Remove deprecated ability tags UI

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • I have tested my code functionality
  • Docker build succeeds locally

TODO:

  • Agent handle document uploads via parsedFiles
  • Agent handle images in chat (#5068)

🔄 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/5140 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 3/4/2026 **Status:** ✅ Merged **Merged:** 3/4/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `automatic-mode` --- ### 📝 Commits (2) - [`e10b8d7`](https://github.com/Mintplex-Labs/anything-llm/commit/e10b8d7b35dc6299c0c308147532fab23dd4d6cb) Add automatic chat mode with native tool calling support - [`7fc010d`](https://github.com/Mintplex-Labs/anything-llm/commit/7fc010d851b442a611a3d6d71396cf5ac79118cb) Merge branch 'master' into automatic-mode ### 📊 Changes **47 files changed** (+551 additions, -263 deletions) <details> <summary>View changed files</summary> 📝 `extras/translator/index.mjs` (+77 -8) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/AgentMenu/index.jsx` (+0 -28) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx` (+20 -11) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/index.jsx` (+2 -0) 📝 `frontend/src/locales/ar/common.js` (+11 -7) 📝 `frontend/src/locales/cs/common.js` (+11 -7) 📝 `frontend/src/locales/da/common.js` (+11 -7) 📝 `frontend/src/locales/de/common.js` (+11 -7) 📝 `frontend/src/locales/en/common.js` (+10 -7) 📝 `frontend/src/locales/es/common.js` (+11 -9) 📝 `frontend/src/locales/et/common.js` (+11 -7) 📝 `frontend/src/locales/fa/common.js` (+11 -7) 📝 `frontend/src/locales/fr/common.js` (+11 -8) 📝 `frontend/src/locales/he/common.js` (+11 -7) 📝 `frontend/src/locales/it/common.js` (+10 -7) 📝 `frontend/src/locales/ja/common.js` (+11 -7) 📝 `frontend/src/locales/ko/common.js` (+11 -7) 📝 `frontend/src/locales/lv/common.js` (+11 -7) 📝 `frontend/src/locales/nl/common.js` (+11 -7) 📝 `frontend/src/locales/pl/common.js` (+11 -8) _...and 27 more files_ </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat (New feature) - [ ] 🐛 fix (Bug fix) - [ ] ♻️ refactor (Code refactoring without changing behavior) - [ ] 💄 style (UI style changes) - [ ] 🔨 chore (Build, CI, maintenance) - [ ] 📝 docs (Documentation updates) ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> closes #3483 resolves #4932 resolves #4509 connect #5068 (change when complete) ### Description Introduces a new automatic chat mode (now the default) that automatically invokes tools when the provider supports native tool calling. - Conditionally shows/hides the @agent command based on whether native tooling is available in the prompt input - Update all locale translations with new mode descriptions <!-- Describe the changes in this PR that are impactful to the repo. What problem does it solve? --> ### Visuals (if applicable) <!-- Add screenshots or screen recordings to demonstrate the changes, especially for UI updates. --> ### Additional Information - Add supportsNativeToolCalling() to AI providers (OpenAI, Anthropic, Azure always support; others opt-in via ENV) - Enhance translator to preserve Trans component tags - Remove deprecated ability tags UI <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes - [ ] Relevant documentation has been updated (if applicable) - [ ] I have tested my code functionality - [ ] Docker build succeeds locally ---- TODO: - Agent handle document uploads via `parsedFiles` - Agent handle images in chat (#5068) --- <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-06-05 15:20:57 -04:00
yindo closed this issue 2026-06-05 15:20:57 -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#5319