Skip to content

Commit be2141f

Browse files
fix build
1 parent 0b06a00 commit be2141f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/web/src/features/chat/agent.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,8 @@ export const createAgentStream = async ({
5454
[toolNames.readFiles]: readFilesTool,
5555
[toolNames.findSymbolReferences]: findSymbolReferencesTool,
5656
[toolNames.findSymbolDefinitions]: findSymbolDefinitionsTool,
57-
// We only include these tools when there are no search scopes
58-
// because the LLM will need to discover what repositories are
59-
// available to it.
60-
...(searchScopeRepoNames.length === 0 ? {
61-
[toolNames.searchRepos]: searchReposTool,
62-
[toolNames.listAllRepos]: listAllReposTool,
63-
} : {}),
57+
[toolNames.searchRepos]: searchReposTool,
58+
[toolNames.listAllRepos]: listAllReposTool,
6459
},
6560
prepareStep: async ({ stepNumber }) => {
6661
// The first step attaches any mentioned sources to the system prompt.

0 commit comments

Comments
 (0)