-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/agent framework migration #103
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
bca4452
Implement AzureOpenAIAnalyzerService for code analysis using Microsof…
DawnDevelop 74ced8a
Update AI integration to use Azure OpenAI and refactor related services
DawnDevelop 65e2631
Added Workitem ref
DawnDevelop b82afc6
cleanup
DawnDevelop e4cac4a
fix error
DawnDevelop File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/Lintellect.Api/Application/Interfaces/IWorkItemService.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| using Lintellect.Shared.Models; | ||
|
|
||
| namespace Lintellect.Api.Application.Interfaces; | ||
|
|
||
| /// <summary> | ||
| /// Resolves work items / issues linked to a pull request, regardless of provider. | ||
| /// Wraps <see cref="IGitClientFactory"/> + <see cref="IGitClient.GetLinkedWorkItemsAsync"/> so the | ||
| /// orchestrator can stay provider-agnostic. | ||
| /// </summary> | ||
| public interface IWorkItemService | ||
| { | ||
| Task<List<WorkItemReference>> ResolveAsync(AnalysisRequest analysisRequest, CancellationToken cancellationToken = default); | ||
| } |
24 changes: 24 additions & 0 deletions
24
src/Lintellect.Api/Application/Interfaces/IWorkItemSummarizer.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| using Lintellect.Shared.Models; | ||
|
|
||
| namespace Lintellect.Api.Application.Interfaces; | ||
|
|
||
| /// <summary> | ||
| /// Result of summarizing a set of linked work items into a compact AI-ready context block. | ||
| /// <see cref="FullContext"/> contains the full GOAL + CONTEXT block injected into Summary and | ||
| /// Detailed-Analysis prompts. <see cref="Goal"/> is the single GOAL line injected into the | ||
| /// per-file Inline-Suggestion prompts (kept tight to avoid per-file token blow-up). | ||
| /// </summary> | ||
| public sealed record WorkItemSummary(string FullContext, string Goal) | ||
| { | ||
| public static WorkItemSummary Empty { get; } = new(string.Empty, string.Empty); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Condenses a set of <see cref="WorkItemReference"/>s into a tight context block suitable for | ||
| /// injection into the main code-review prompts. Implementations call the configured | ||
| /// <see cref="IAnalyzerService"/> with a hard token cap. | ||
| /// </summary> | ||
| public interface IWorkItemSummarizer | ||
| { | ||
| Task<WorkItemSummary> SummarizeAsync(IReadOnlyList<WorkItemReference> workItems, CancellationToken cancellationToken = default); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.