feat: add tools for retrieving audit events
What does this merge request do and why?
feat: add tools for retrieving audit events
This change adds a new tool called ListInstanceAuditEvents, ListGroupAuditEvents and ListProjectAuditEvents that allows users to view audit events in GitLab projects, group or instance level.
The tool can be accessed through the Duo Agentic Chat / Duo Workflow interface and works as a read-only operation.
The implementation includes proper input validation, error handling, and comprehensive test coverage. The tool supports identifying projects either by project ID or GitLab URL, making it flexible for different use cases.
How to set up and validate locally
- Run the AI Gateway with this branch
- Open Duo Agentic Chat in VSCode, connected to a project with audit events in your GDK
- Ask a question related to audit events, like "Please give me the list of audit events for this project."
Screenshot and recordings
https://www.youtube.com/watch?v=u6CjMT1f2WI
Merge request checklist
-
Tests added for new functionality. If not, please raise an issue to follow up. -
Documentation added/updated, if needed.
Related to https://gitlab.com/gitlab-org/gitlab/-/issues/548656
Edited by Nate Rosandich
