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
Metadata
Release files for ai-controller 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ai_controller-0.1.0.tar.gz | 4.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_controller-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / ai_controller-0.1.0.tar.gz
| Download URL | ai_controller-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9fdfef180e531cb74fea763f79d52a1dae0ea5208b1fc02b817bb7cd7bd4103
|
|
BLAKE2b-256 checksum How to use checksums |
a6b3f57fb9af900a7db1db35a32dbcf6d198124ac7d750f927feda153fed33a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / ai_controller-0.1.0-py3-none-any.whl
| Download URL | ai_controller-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d56c35087f781e6590d4db22c38931f5cfda20ea451c116b6e2d8f83cbcf9738
|
|
BLAKE2b-256 checksum How to use checksums |
4f72e36cf6d89c9abd4576bcb9cbe09ae574405bb5ae109b08725c72fe20b73f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for ai-controller 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.