-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure config.json is copied to production docker image (#43)
* fix: ensure config.json is copied to production docker image Co-Authored-By: Han Xiao <[email protected]> * fix: remove unused config parameter in reduce callback Co-Authored-By: Han Xiao <[email protected]> * refactor: simplify tools configuration using Object.fromEntries Co-Authored-By: Han Xiao <[email protected]> * test: increase timeout for async search test Co-Authored-By: Han Xiao <[email protected]> * test: remove setTimeout from agent test Co-Authored-By: Han Xiao <[email protected]> * test: remove trivial tests and improve test coverage Co-Authored-By: Han Xiao <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Han Xiao <[email protected]>
- Loading branch information
1 parent
3e60f71
commit a4de4cc
Showing
10 changed files
with
18 additions
and
186 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import { getResponse } from '../agent'; | ||
|
||
describe('getResponse', () => { | ||
afterEach(() => { | ||
jest.useRealTimers(); | ||
}); | ||
|
||
it('should handle search action', async () => { | ||
const result = await getResponse('What is TypeScript?', 1000); | ||
const result = await getResponse('What is TypeScript?', 10000); | ||
expect(result.result.action).toBeDefined(); | ||
expect(result.context).toBeDefined(); | ||
expect(result.context.tokenTracker).toBeDefined(); | ||
expect(result.context.actionTracker).toBeDefined(); | ||
}); | ||
}, 30000); | ||
}); |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.