agent: hint at math import in python tool

This commit is contained in:
ochafik 2024-04-10 01:22:09 +01:00
parent 9fe269e24a
commit a61ebebaa0

View file

@ -6,7 +6,7 @@ from typing import Dict, Union
def execute_python(source: str) -> Union[Dict, str]: def execute_python(source: str) -> Union[Dict, str]:
""" """
Evaluate a Python program and return the globals it declared. Evaluate a Python program and return the globals it declared.
Can be used to compute mathematical expressions. Can be used to compute mathematical expressions (e.g. after importing math module).
Args: Args:
source: contain valid, executable and pure Python code. Should also import any required Python packages. source: contain valid, executable and pure Python code. Should also import any required Python packages.