lobe-chat
lobe-chat copied to clipboard
[Request] Configuration for Mandatory and Optional Plugins in Agents
🥰 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.