Create Repository X-Ray endpoint
Problem to solve
As a developer, after I change the 3rd party libraries included in my project, I want to scan the updated dependencies and store the metadata. This will improve context for future code generation requests sent through the AI assistant.
Proposal
A new API endpoint needs to be added to the AI Gateway service to handle prompts from the Repository X-Ray scanner.
The new endpoint should follow the guidelines outlined at: https://docs.gitlab.com/ee/architecture/blueprints/ai_gateway/index.html
The endpoint will take input data from prompt_components and use it to compile a prompt that gets sent to the Claude model.
Key requirements:
- Accept JSON payload containing prompt_components
- Preprocess data by composing full prompt from components
- Send prompt to Claude and return response
- No post-processing of model response needed at this time
- The endpoint should be documented
Relevant tests need to be added, following existing patterns for the service.
Further details
Links / references
Edited by Mikołaj Wawrzyniak