AI-Agent (Auto-Code Executor) is a Python module that dynamically executes Python functions based on textual input. It leverages a language model (LLM) to match the input text with function descriptions and then executes the corresponding function from a specified file.
Project description
AI-Agent (Auto-Code Executor)
AI-Agent (Auto-Code Executor) is a Python module that dynamically executes Python functions based on textual input. It leverages a language model (LLM) to match the input text with function descriptions and then executes the corresponding function from a specified file.
Features
- Dynamic Function Execution: Executes Python functions based on descriptive input text.
- AST Parsing: Uses Abstract Syntax Tree (AST) to extract function names and descriptions.
- LLM Integration: Utilizes a language model to find and execute the appropriate function.
- Flexible Module Loading: Imports functions from any Python file at runtime.
Installation
Install the module using pip:
Usage Example
from ai_agent import Controller
input_text = "what is 10+90?" controller = Controller(input_text, 'sample.py')
result = controller.execute() print(result)
pip install ai-controller
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_controller-0.1.0.tar.gz.
File metadata
- Download URL: ai_controller-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9fdfef180e531cb74fea763f79d52a1dae0ea5208b1fc02b817bb7cd7bd4103
|
|
| MD5 |
c283eae48753ec98a76a71de60e8a9e5
|
|
| BLAKE2b-256 |
a6b3f57fb9af900a7db1db35a32dbcf6d198124ac7d750f927feda153fed33a2
|
File details
Details for the file ai_controller-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ai_controller-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d56c35087f781e6590d4db22c38931f5cfda20ea451c116b6e2d8f83cbcf9738
|
|
| MD5 |
1ce3dd93f2ee268218a3d3710919716f
|
|
| BLAKE2b-256 |
4f72e36cf6d89c9abd4576bcb9cbe09ae574405bb5ae109b08725c72fe20b73f
|