lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Qwen / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS/Plugins/Artifacts). One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
46.77k stars 10.31k forks source link

[Request] Configuration for Mandatory and Optional Plugins in Agents #4871

Open ggiallo28 opened 21 hours ago

ggiallo28 commented 21 hours ago

🥰 Feature Description

It would be great to have the ability to define which plugins are mandatory and which are optional directly in the agent configuration (manifest). This would allow agents to have pre-configured plugins enabled by default, ensuring they have all the necessary tools for proper functionality while maintaining the flexibility to enhance their capabilities with optional plugins.

Currently, there is no straightforward way to specify this distinction, requiring manual setup every time an agent is created or modified.

🧐 Proposed Solution

A possible solution could be to introduce a new plugin_configuration key within the agent's configuration (e.g., under the config section in the agent manifest). This key could specify:

Mandatory Plugins: Essential plugins required for the agent to function correctly. These plugins would always be loaded. Optional Plugins: Non-essential plugins that enhance the agent's functionality. These plugins would load if available but would not block the agent if missing.

📝 Additional Information

{
  "author": "your name or org name",
  "config": {
    "displayMode": "chat or docs",
    "systemRole": "agent prompt",
    "model": "gpt-4",
    "plugins": {
       "optionals": [...],
       "required": [...]
    }
    "params": {
      "frequency_penalty": 0,
      "presence_penalty": 0,
      "temperature": 0.6,
      "top_p": 1
    },
    [....]
}

This feature would reduce operational overhead by ensuring essential plugins are automatically set up for agents.

lobehubbot commented 21 hours ago

👀 @ggiallo28

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。