Skip to content

Conversation

@luiarthur
Copy link
Collaborator

Removed redundant conditional check for web search tools.

Removed redundant conditional check for web search tools.
@luiarthur luiarthur requested a review from mikegros February 7, 2026 00:02
"run_arxiv_search",
])
if not self.use_web:
self.runner.remove_tool([
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think this is redundant because the documenter and runner are each execution agents and so it's removing from the latter. I probably could have written this more compactly like:

if not self.use_web:
    for agent in [self.runner, self.documenter]:
        agent.remove_tool([< list tools here >])

but I dont think its redundant

@luiarthur luiarthur closed this Feb 7, 2026
@luiarthur luiarthur deleted the luiarthur-patch-2 branch February 7, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants