Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_controller-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_controller-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for ai_controller-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c9fdfef180e531cb74fea763f79d52a1dae0ea5208b1fc02b817bb7cd7bd4103
MD5 c283eae48753ec98a76a71de60e8a9e5
BLAKE2b-256 a6b3f57fb9af900a7db1db35a32dbcf6d198124ac7d750f927feda153fed33a2

See more details on using hashes here.

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

Hashes for ai_controller-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d56c35087f781e6590d4db22c38931f5cfda20ea451c116b6e2d8f83cbcf9738
MD5 1ce3dd93f2ee268218a3d3710919716f
BLAKE2b-256 4f72e36cf6d89c9abd4576bcb9cbe09ae574405bb5ae109b08725c72fe20b73f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page