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

repeatedly throwing the error "I must stop using this action input. I'll try something else instead." and gets retry timeout or gives incorrect answer #518

Open
Kalyan96 opened this issue Apr 26, 2024 · 0 comments

Comments

@Kalyan96
Copy link

to fix this issue and let the iterations run without interruptions , i commented the following code at location <[src/crewai/tools/tool_usage.py]> in crew-ai libraries :

        if self._check_tool_repeated_usage(calling=calling):
            try:
                result = self._i18n.errors("task_repeated_usage").format(
                    tool_names=self.tools_names
                )
                self._printer.print(content=f"\n\n{result}\n", color="purple")
                self._telemetry.tool_repeated_usage(
                    llm=self.function_calling_llm,
                    tool_name=tool.name,
                    attempts=self._run_attempts,
                )
                result = self._format_result(result=result)
                return result
            except Exception:
                self.task.increment_tools_errors()


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

1 participant