Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] enable_search_toggle will always evaluate to True #1633

Open
borghives opened this issue Jan 18, 2025 · 0 comments
Open

[Bug] enable_search_toggle will always evaluate to True #1633

borghives opened this issue Jan 18, 2025 · 0 comments
Assignees

Comments

@borghives
Copy link

in the following code in agent_02_PlanningAgent.py

        enable_search_toggle = self._determine_search_requirement().strip()
        if self.debug:
            print("Search toggle: ", enable_search_toggle)

        # Create steps based on validation
        steps = self._create_steps(validated_query, enable_search_toggle)

enable_search_toggle is a str but _create_steps expects a bool. Thus a "False" from enable_search_toggle would still evaluate as true inside the _create_steps function.

@borghives borghives changed the title enable_search_toggle will always evaluate to True [Bug] enable_search_toggle will always evaluate to True Jan 18, 2025
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

No branches or pull requests

2 participants