Skip to content

Adding settings button and agent data to chat view

Darby Frey requested to merge ai-agents-show-view into master

What does this MR do and why?

This MR updates the AI Agents chat view to load the agent data from GraphQL, and adds a Settings button which links to the edit view.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
Screenshot_2024-03-04_at_4.37.07_PM Screenshot_2024-03-07_at_7.45.09_AM

How to set up and validate locally

  1. Ensure you have an EE license activated

  2. Enable the feature flag

    Feature.enable(:agent_registry)
  3. Load /-/ml/agents for any project (for example /flightjs/Flight/-/ml/agents) and click Create agent

  4. Input an Agent Name and Prompt and click Create agent.

  5. You'll be redirected to the chat view. Ensure the name of your agent is shown in the top left corner and that the settings button displays in the top right corner

  6. Click the settings button and ensure you are directed to the edit view

Merge request reports