Quick Overview
IPythonInterpreter
Execute Python code in an isolated environment with persistent state.
PersistentShellTool
Run shell commands in a persistent terminal session.
LoadFileAttachment
Load and process local images and PDF files.
Tool Details
IPythonInterpreter
IPythonInterpreter
Executes Python code in an isolated IPython environment with persistent state between calls.
Use Cases
Data Analysis
Analyze and process datasets
Calculations
Perform mathematical and statistical operations
Testing
Test code snippets in a safe environment
Scripts
Run Python scripts and automation
Usage Example
PersistentShellTool
PersistentShellTool
Similar to the Agents SDK
LocalShellTool, but works with any model. Executes shell commands in a persistent terminal session, maintaining state across multiple commands.Use Cases
CLI Commands
Execute command-line operations
File Operations
Navigate and manage file systems
Git Operations
Version control and repository management
Build Operations
Run build scripts and compile code
Usage Example
LoadFileAttachment
LoadFileAttachment
Loads local files and returns them in the appropriate format for the agent to view.
Use Cases
Image Processing
Load and analyze image files
PDF Reading
Extract and process PDF content
User Files
Handle user-uploaded file attachments
File Analysis
Inspect and analyze local files
Usage Example
The agent can use both absolute paths and paths relative to the current working directory. Make sure to instruct your agent accordingly on how to use this tool.