Checkbox to enable web search in Duo Agentic Chat

Add a checkbox to enable web search in Duo Agentic Chat.

Context

The Web Search tool is behind the dap_web_search feature flag and web_search client capability.

Implementation Details

  • Feature flag: dap_web_search (see MR !219759 (merged))
  • Client capability: web_search
  • Component: ee/app/assets/javascripts/ai/duo_agentic_chat/components/duo_agentic_chat.vue

To enable web search, both the feature flag should be enabled and the capability should be sent to the client.

Design

Toggle dropdown option located in "+" menu, which is also being used for file upload.

Entire dropdown item row should be clickable to toggle, enter to toggle (see work item 'Truncate description' in main menu for example)

image.png

Edited by 🤖 GitLab Bot 🤖