- Issue created by @marcus_johansson
- 🇮🇳India anjaliprasannan
As per my understanding these are the required changes to be done. Pointing this for maintainers confirmation.
Redesign the AI Assistant Form Layout:- Modify the existing AI Assistant configuration form to resemble the AI Agents form. This means consolidating the agent selection and creation process into a single interface.
- Replace the current "Use agent as assistant" dropdown with a more integrated field that allows both selecting an existing agent and creating a new one on the fly.
Create Agent on Save:
- When the user saves the AI Assistant configuration, implement logic to check if a "New agent" option is selected.
- If so, programmatically create a new agent using the provided details (e.g., the administrative description and selected tools).
- Automatically link this newly created agent to the AI Assistant by updating the assistant's configuration to reference the agent's ID.
Integrate Agent Selection Field:
- Add a dynamic dropdown or autocomplete field labeled "AI Agent" (as suggested in your description) that lists existing agents.
- If the user selects "New agent," display an inline form to input agent details (e.g., name, description, and tool preferences) before saving.
- Upon saving, the system should create the agent, assign it the selected tools, and connect it to the AI Assistant in one action.