Get startedGet started for free

Agent toolbox: Python tool

This exercise is part of the course

Multi-Agent Systems with LangGraph

View Course

Exercise instructions

Make sure to first run the cell to install the libraries

  • Create a tool called python_repl_tool() that takes and runs some arbitrary code.
  • Invoke it on the code provided (code).


Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.


Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise