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)
Related Links
- Feature flag MR: !219759 (merged)
- Web search capability references: https://gitlab.com/search?search=web_search&nav_source=navbar&project_id=39903947&group_id=59868441&search_code=true&repository_ref=main
- Component file: https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/assets/javascripts/ai/duo_agentic_chat/components/duo_agentic_chat.vue#L732
Edited by 🤖 GitLab Bot 🤖
