You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
.. | ||
__init__.py | 1 year ago | |
api.py | 1 year ago | |
readme.md | 1 year ago |
readme.md
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
-
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.