A framework for building natural language interfaces to actions
Project description
ActuatorAI
A powerful framework for building natural language interfaces to actions
Overview
ActuatorAI makes it easy to create AI-powered interfaces that can understand natural language requests and execute corresponding actions. It provides a clean, declarative API for defining actions and their natural language triggers.
Features
- ✨ Simple Declarative API - Define actions with intuitive decorators
- 🧠 Built-in LLM Integration - Leverages state-of-the-art language models
- 🔌 Extensible Architecture - Create custom actions, formatters, and adapters
- 🌐 API Server - Ready-to-use FastAPI server for web integration
- 🛠️ Customizable - Configure to use different LLM providers
Installation
pip install actuator-ai
Quick Start
Basic Usage
from actuator_ai.core import action, ActuatorAI
# Define an action with a natural language pattern
@action("Get the weather for {location}")
def get_weather(location: str):
# Your implementation here
return {"temperature": 72, "condition": "sunny"}
# Create an ActuatorAI instance
ai = ActuatorAI()
# Process a natural language request
result = ai.process("What's the weather in San Francisco?")
print(result)
Multiple Actions
@action("Find restaurants in {city}")
def find_restaurants(city: str):
return {"restaurants": ["Restaurant A", "Restaurant B"]}
@action("Book a flight from {origin} to {destination}")
def book_flight(origin: str, destination: str):
return {"flight": "AB123", "departure": "9:00 AM"}
# ActuatorAI will automatically determine which action to use
result = ai.process("Find me some restaurants in New York")
API Server
ActuatorAI includes a ready-to-use FastAPI server:
from actuator_ai.api import create_app
app = create_app()
# Run with: uvicorn my_module:app --reload
Documentation
For full documentation, examples, and advanced usage, visit our GitHub repository.
License
MIT
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 actuator_ai-0.1.1.tar.gz.
File metadata
- Download URL: actuator_ai-0.1.1.tar.gz
- Upload date:
- Size: 94.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f5c0ee0217e9019a06c87fe7ed9e8913ace795ed0f35cda11c9a6b42cefc25f
|
|
| MD5 |
a3a47dc63b64d36a77a8b3923724c8fb
|
|
| BLAKE2b-256 |
f7572ec12d7880d093de05ad1111d7bbf2997b5eac99428c75d2447379098ae5
|
File details
Details for the file actuator_ai-0.1.1-py3-none-any.whl.
File metadata
- Download URL: actuator_ai-0.1.1-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4fd22d0e866ddbb40bc96cc785ea1b3992079e3de2d02a62a5860ec71c43ebe
|
|
| MD5 |
ca2895e17de65f5f402eb0bd355bd062
|
|
| BLAKE2b-256 |
eef3a2fc26537c485f94138825aca0d12579937bab5cb1a2b8830da5007ae695
|