-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WIP of new file select agent. Implement vercel ai for deepseek, o…
…penai and vertex
- Loading branch information
1 parent
aad1877
commit 6b54b5b
Showing
15 changed files
with
379 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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,36 @@ | ||
import { func, funcClass } from '#functionSchema/functionDecorators'; | ||
import { codebaseQuery } from '#swe/discovery/codebaseQuery'; | ||
import { SelectFilesResponse, selectFilesToEdit } from '#swe/discovery/selectFilesToEdit'; | ||
import { getProjectInfo } from '#swe/projectDetection'; | ||
import { reviewChanges } from '#swe/reviewChanges'; | ||
|
||
@funcClass(__filename) | ||
export class CodeFunctions { | ||
/** | ||
* Searches across files under the current working directory to provide an answer to the query | ||
* @param query | ||
*/ | ||
@func() | ||
async queryRepository(query: string): Promise<string> { | ||
return await codebaseQuery(query); | ||
} | ||
|
||
/** | ||
* | ||
* @param requirements | ||
*/ | ||
@func() | ||
async selectFilesToEdit(requirements: string): Promise<SelectFilesResponse> { | ||
return await selectFilesToEdit(requirements, await getProjectInfo()); | ||
} | ||
|
||
/** | ||
* Reviews the changes committed to git since a commit or start of a branch | ||
* @param requirements | ||
* @param sourceBranchOrCommit | ||
*/ | ||
@func() | ||
async reviewChanges(requirements: string, sourceBranchOrCommit: string) { | ||
return await reviewChanges(requirements, sourceBranchOrCommit); | ||
} | ||
} |
This file contains 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,2 @@ | ||
This folder contains agents which perform the discovery/research | ||
phase of a task. |
File renamed without changes.
This file contains 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.