[PR #5143] [MERGED] Automatic mode for workspace (Agent mode default) #5323

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

📋 Pull Request Information

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

Base: masterHead: automatic-mode


📝 Commits (10+)

  • e10b8d7 Add automatic chat mode with native tool calling support
  • 7fc010d Merge branch 'master' into automatic-mode
  • a9bb2d0 Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into automatic-mode
  • ffb8160 Merge branch 'automatic-mode' of github.com:Mintplex-Labs/anything-llm into automatic-mode
  • 4b28f4d rebase translations
  • 51f9950 Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into automatic-mode
  • a9136a8 WIP on image attachments. Supports initial image attachment + subsequent attachments
  • f963246 persist images
  • 3836a19 Image attachments and updates for providers
  • 43df938 desktop pre-change

📊 Changes

62 files changed (+1261 additions, -300 deletions)

View changed files

frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/AgentMenu/index.jsx (+116 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/ToolsMenu/Tabs/AgentSkills/index.jsx (+4 -1)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/ToolsMenu/index.jsx (+3 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx (+5 -1)
📝 frontend/src/components/WorkspaceChat/ChatContainer/index.jsx (+4 -0)
📝 frontend/src/locales/ar/common.js (+9 -6)
📝 frontend/src/locales/cs/common.js (+9 -6)
📝 frontend/src/locales/da/common.js (+9 -6)
📝 frontend/src/locales/de/common.js (+9 -6)
📝 frontend/src/locales/en/common.js (+9 -6)
📝 frontend/src/locales/es/common.js (+9 -7)
📝 frontend/src/locales/et/common.js (+9 -6)
📝 frontend/src/locales/fa/common.js (+9 -6)
📝 frontend/src/locales/fr/common.js (+9 -7)
📝 frontend/src/locales/he/common.js (+9 -6)
📝 frontend/src/locales/it/common.js (+9 -6)
📝 frontend/src/locales/ja/common.js (+9 -6)
📝 frontend/src/locales/ko/common.js (+9 -6)
📝 frontend/src/locales/lv/common.js (+9 -6)
📝 frontend/src/locales/nl/common.js (+9 -6)

...and 42 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
resolves #5068

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 (#5145)

Also supports automatic injection of attached documents and images to providers.

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
  • There was a lot of work on aibitat core to get this to function for all providers as well as persist messages, images, attachments, and possible stream errors for tooled/untooled and niche providers

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

🔄 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/5143 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 3/4/2026 **Status:** ✅ Merged **Merged:** 3/18/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `automatic-mode` --- ### 📝 Commits (10+) - [`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 - [`a9bb2d0`](https://github.com/Mintplex-Labs/anything-llm/commit/a9bb2d03b6f6e4f7410e0a2328f4e09790e7222f) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into automatic-mode - [`ffb8160`](https://github.com/Mintplex-Labs/anything-llm/commit/ffb816095d0b3899c2e7ee9e0011d66ff4a35549) Merge branch 'automatic-mode' of github.com:Mintplex-Labs/anything-llm into automatic-mode - [`4b28f4d`](https://github.com/Mintplex-Labs/anything-llm/commit/4b28f4df9b9c0e0caa494fd414fd9b9f35fbbace) rebase translations - [`51f9950`](https://github.com/Mintplex-Labs/anything-llm/commit/51f99506422605667b3c6980abdf7bdc22c94a56) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into automatic-mode - [`a9136a8`](https://github.com/Mintplex-Labs/anything-llm/commit/a9136a80020237b187f6de96e1156cb801c9f7fe) WIP on image attachments. Supports initial image attachment + subsequent attachments - [`f963246`](https://github.com/Mintplex-Labs/anything-llm/commit/f96324651cc937fac649372b67b72a807a6d172c) persist images - [`3836a19`](https://github.com/Mintplex-Labs/anything-llm/commit/3836a19633695ea293baefd2c5efe3c2a4fd5f07) Image attachments and updates for providers - [`43df938`](https://github.com/Mintplex-Labs/anything-llm/commit/43df93879f1a58822e28f56160c3166042f0bcad) desktop pre-change ### 📊 Changes **62 files changed** (+1261 additions, -300 deletions) <details> <summary>View changed files</summary> ➕ `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/AgentMenu/index.jsx` (+116 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/ToolsMenu/Tabs/AgentSkills/index.jsx` (+4 -1) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/ToolsMenu/index.jsx` (+3 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx` (+5 -1) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/index.jsx` (+4 -0) 📝 `frontend/src/locales/ar/common.js` (+9 -6) 📝 `frontend/src/locales/cs/common.js` (+9 -6) 📝 `frontend/src/locales/da/common.js` (+9 -6) 📝 `frontend/src/locales/de/common.js` (+9 -6) 📝 `frontend/src/locales/en/common.js` (+9 -6) 📝 `frontend/src/locales/es/common.js` (+9 -7) 📝 `frontend/src/locales/et/common.js` (+9 -6) 📝 `frontend/src/locales/fa/common.js` (+9 -6) 📝 `frontend/src/locales/fr/common.js` (+9 -7) 📝 `frontend/src/locales/he/common.js` (+9 -6) 📝 `frontend/src/locales/it/common.js` (+9 -6) 📝 `frontend/src/locales/ja/common.js` (+9 -6) 📝 `frontend/src/locales/ko/common.js` (+9 -6) 📝 `frontend/src/locales/lv/common.js` (+9 -6) 📝 `frontend/src/locales/nl/common.js` (+9 -6) _...and 42 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 resolves #5068 ### 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 (#5145) <!-- Describe the changes in this PR that are impactful to the repo. What problem does it solve? --> Also supports automatic injection of attached documents and images to providers. ### 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 - There was a lot of work on aibitat core to get this to function for all providers as well as persist messages, images, attachments, and possible stream errors for tooled/untooled and niche providers <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated (if applicable) - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <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:58 -04:00
yindo closed this issue 2026-06-05 15:20:58 -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#5323