crewAI-tools
crewAI-tools copied to clipboard
adding python interpreter tool and documentation
This PR introduces the PythonREPLTool, a tool designed to execute Python commands dynamically within a CrewAI environment. The tool provides a Python shell where agents can run Python code snippets and see their output directly. Additionally, it includes functionality to check and install Python packages on the fly.
Features:
- Execute arbitrary Python commands and capture their output.
- Automatically handle exceptions and return error messages.
- Check for the existence of Python packages and install them if necessary.