Build intelligent Agno agents with computing autonomy through several file-system and execution functions that allow:
- Run Python code
- Save to file and run
pip install packages
- List files, read files
PythonTools is a pre-built toolkit you import, unlike the custom Python Functions as Tools pattern.
include_tools and exclude_tools control which toolkit functions are registered. They do not sandbox code executed by run_python_code or save_to_file_and_run. Executed code runs with the current Python process permissions and can install packages, read environment variables and files, or make network requests. Use an isolated environment with only the credentials and filesystem access the agent needs.
Run the Example
Set OPENAI_API_KEY before running the example.
For details, see PythonTools cookbook.