Skip to content

Conversation

@JamesPasta
Copy link
Collaborator

No description provided.

- 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.
sq fix
@JamesPasta JamesPasta requested a review from ligovbc January 9, 2026 17:08
@github-actions
Copy link

github-actions bot commented Jan 9, 2026

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 270
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

Copy link
Contributor

Copilot AI left a 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.

Comment on lines +22 to +37
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;
Copy link

Copilot AI Jan 13, 2026

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.

Copilot uses AI. Check for mistakes.
@DarylTodosichuk DarylTodosichuk deleted the feature/AB#30835-connect-ai-agent branch January 13, 2026 23:27
@DarylTodosichuk DarylTodosichuk restored the feature/AB#30835-connect-ai-agent branch January 14, 2026 17:16
@github-actions
Copy link

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 270
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@JamesPasta JamesPasta marked this pull request as draft January 15, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants