Skip to content

Code Interpreter

ToolAgents includes example code-interpreter workflows that pair a chat agent with a Python execution layer.

Representative example:

  • examples/agents/misc/code_interpreter/example_agent.py

Related files:

  • examples/agents/misc/code_interpreter/code_interpreter.py
  • examples/agents/misc/code_interpreter/input.csv

This example is useful for:

  • iterative tool-assisted coding flows
  • agent-driven data analysis prompts
  • experimenting with controlled Python execution around the core chat agent

Treat this example as a maintained example script rather than a production sandbox implementation.