-
Notifications
You must be signed in to change notification settings - Fork 3
Feature/ab#30835 connect ai agent #1886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
- Replaced OpenAI summary generation with a new method that calls the Agentic AI API using a resilient HTTP request. - Updated relevant methods to use GenerateAgenticSummaryAsync for improved reliability and consistency.
-sonarqube fix
…aryAsync - Added AGENTIC_AI key to DynamicUrlKeyNames and seeded its default value in DynamicUrlDataSeeder. - Updated OpenAIService to retrieve the Agentic AI endpoint dynamically via IEndpointManagementAppService and refactored related method calls to use the standard summary generation method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
| private readonly IResilientHttpRequest _resilientHttpRequest; | ||
| private readonly IEndpointManagementAppService _endpointManagementAppService; | ||
|
|
||
| private string? ApiKey => _configuration["AI:OpenAI:ApiKey"]; | ||
| private string? ApiUrl => _configuration["AI:OpenAI:ApiUrl"] ?? "https://api.openai.com/v1/chat/completions"; | ||
| private readonly string NoKeyError = "OpenAI API key is not configured"; | ||
| private readonly string NoSummaryMsg = "No summary generated."; | ||
|
|
||
| public OpenAIService(HttpClient httpClient, IConfiguration configuration, ILogger<OpenAIService> logger, ITextExtractionService textExtractionService) | ||
| public OpenAIService(HttpClient httpClient, IConfiguration configuration, ILogger<OpenAIService> logger, ITextExtractionService textExtractionService, IResilientHttpRequest resilientHttpRequest, IEndpointManagementAppService endpointManagementAppService) | ||
| { | ||
| _httpClient = httpClient; | ||
| _configuration = configuration; | ||
| _logger = logger; | ||
| _textExtractionService = textExtractionService; | ||
| _resilientHttpRequest = resilientHttpRequest; | ||
| _endpointManagementAppService = endpointManagementAppService; |
Copilot
AI
Jan 13, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new dependencies IResilientHttpRequest and IEndpointManagementAppService are only used in the private unused method GenerateAgenticSummaryAsync. Since this method is not called anywhere, these dependencies are effectively unused, increasing the complexity of the constructor and dependency injection without providing any current value. Consider removing these dependencies until the Agentic AI functionality is actually implemented and used.
No description provided.