Mintplex-Labs / anything-llm

The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, and more.
https://anythingllm.com
MIT License
26.09k stars 2.61k forks source link

[FEAT]: Update workspace agent settings through API #2195

Open aka-collab opened 2 months ago

aka-collab commented 2 months ago

What would you like to see?

Loving the fact that we can now use agents through API calls. Now that it's implemented, it would be useful to update agent settings through it as well. In my case specifically, I want to be able to add SQL connections through the API as I want to include the SQL feature in every new workspace I create through the API.

Of course, we'd also need to be able to set the agent's LLM provider since that's needed to enable agents in a new workspace in the first place. Apologies if this feature is already in development.

aka-collab commented 2 months ago

Oops sorry, I just realized that the SQL connection is already global to all workspace agents. It still remains however that when a new workspace is created, the LLM provider has to be selected first before agents are enabled on it, and I don't believe I see a way to do that in the API documentation.