This Jupyter Notebook showcases the integration of the Code Interpreter tool which executes Python code dynamically within applications.
GPTAssistantAgent
to use code interpreter.
Python>=3.9
. To run this notebook example, please
install:
config_list_from_json
function loads a list of configurations from an environment variable or
a json file.
GPTAssistantAgent
with code
interpreter. Pass code_interpreter
in tools
parameter to enable
GPTAssistantAgent
with code interpreter. It will write code and
automatically execute it in a sandbox. The agent will receive the
results from the sandbox environment and act accordingly.