ZackBradshaw's picture
Upload folder using huggingface_hub
e67043b verified
|
raw
history blame
783 Bytes

Tool Description

The "Python Code Interpreter Tool" is a handy tool designed to execute Python code. It can be used as a simple Python interpreter or a calculator to compute Python expressions.

Tool Specifications

  • Name: Python Code Interpreter Tool
  • Purpose: Execute Python codes
  • Name for Model: code_interpreter
  • Model Description: Plugin for executing python codes

Core Functionality

  1. execute_code

    This method accepts a Python code string as input and executes it using a Python interpreter. It can also be used as a simple calculator. For example, sending a request with code (123 + 234) / 23 * 19 will return the result of this expression.

The tool makes use of the CodeInterpreter class which is capable of running Python code.