• Aymeric Roucher's avatar
    Agents: Improve python interpreter (#31409) · b38612d3
    Aymeric Roucher authored
    * Improve Python interpreter
    * Add with and assert statements
    * Prevent overwriting existing tools
    * Check interpreter errors are well logged in code agent
    * Add lazy evaluation for and and or
    * Improve variable assignment
    * Fix early return statements in functions
    * Add small import fix on interpreter tool
    b38612d3
test_python_interpreter.py 21.9 KB