Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ai-controller

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai-controller

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.

  • 0.1.0
  • PyPI
  • Socket score

Maintainers
1

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




FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc