Skip to content

Commit

Permalink
fix: Remove tools from exchange when summarizing files (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
lily-de authored Oct 15, 2024
1 parent c247c8e commit 89650f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/goose/toolkit/repo_context/repo_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ def summarize_current_project(self) -> dict[str, str]:
file_select_exchange = replace_prompt(exchange=file_select_exchange, prompt=system)
files = goose_picks_files(root=project_directory, exchange=file_select_exchange)

# summarize the selected files using a blank exchange with no tools
summary = summarize_files_concurrent(
exchange=self.exchange_view.accelerator, file_list=files, project_name=project_directory.split("/")[-1]
exchange=clear_exchange(self.exchange_view.accelerator, clear_tools=True),
file_list=files,
project_name=project_directory.split("/")[-1],
)

return summary

0 comments on commit 89650f8

Please sign in to comment.