Is your feature request related to a problem? Please describe.
Currently, in jvcli, there is no easy way for users to re-import an agent directly from the jvclient UI. If users make changes to an agent, they have to manually call the API to trigger an agent re-import using init or import agent, which is inconvenient and slows down development.
Describe the solution you'd like
- Add a "Re-import Agent" button in
jvclient that allows users to reload an agent with the latest changes on the fly.
- Clicking the button should trigger a backend request to reload the agent without requiring users to interact with the API directly.
- The process should:
- Identify the selected agent.
- Call the appropriate API endpoint to re-import and reinitialize the agent.
- Display feedback to the user indicating whether the re-import was successful.
Implementation Plan
-
Modify jvclient UI
- Add a "Re-import Agent" button next to the agent selection panel.
- Ensure the button is only enabled when an agent is selected.
-
Implement API Trigger
- On button click, send a request to the appropriate endpoint in
jvserve to reload the agent.
- Ensure the request includes the correct agent ID.
-
Provide User Feedback
- Display a success message if the agent reloads successfully.
- Show an error message if the reload fails, with debugging information.
Expected Benefits
- Improves developer workflow – Allows users to apply changes instantly without needing to restart services or manually call the API.
- Enhances usability – Provides a more intuitive way to update agents directly from the UI.
- Reduces friction – Removes the need for extra steps, making agent management smoother and more efficient.
Describe alternatives you've considered
- Keeping the manual API trigger workflow, but this adds unnecessary complexity for users.
- Implementing an automatic reload on file change, but this could introduce unintended side effects.
Additional context
- This feature aligns with existing agent management functionalities in
jvclient and enhances the real-time usability of jvcli.
- Future enhancements could include auto-reload on file save or batch updates for multiple agents.
Is your feature request related to a problem? Please describe.
Currently, in
jvcli, there is no easy way for users to re-import an agent directly from thejvclientUI. If users make changes to an agent, they have to manually call the API to trigger an agent re-import usinginitorimport agent, which is inconvenient and slows down development.Describe the solution you'd like
jvclientthat allows users to reload an agent with the latest changes on the fly.Implementation Plan
Modify
jvclientUIImplement API Trigger
jvserveto reload the agent.Provide User Feedback
Expected Benefits
Describe alternatives you've considered
Additional context
jvclientand enhances the real-time usability ofjvcli.