AI-on-Rails: A Python library for prototyping and publishing AI applications with guardrails.
Project description
AI-on-Rails
Rapidly create AI applications and publish to the AI Agent marketplace and AI-to-AI broker at https://aionrails.com.
Intro
AI-on-Rails helps bootstrapping AI agents that are triggered by external request and brokers such requests.
An AI-on-Rails application is one or more agents that accept external requests. Such agents can be new AI Agents deployed using AI-on-Rails (on your own infrastructure). But AI-on-Rails agents can also be AI agents that already exist somewhere but follow a known protocol convention (e.g. A2A).
Usage
Creating a New AI Agent
Create a new application with a basic conversation agent:
# Install the AI-on-Rails command line tools
pip install aionrails
# Create an application
aor new my-application
cd my-application
# Create a new AI Agent using a template
aor add my-conversation-agent --template langgraph/basic_conversation
# List available templates
aor templates list
# Get details about a specific template
aor templates info langgraph/basic_conversation
Deploying to Cloud Services
Deploy your AI agent to AWS Lambda:
# Add AWS Lambda deployment configuration
aor add my-agent --langgraph --aws-lambda
# Deploy to AWS using the default CLI profile
aor deploy
# Publish
aor publish --token "<your-personal-token-obtained-on-aionrails.com>"
Adding Existing Services
Integrate existing A2A-compatible services:
# Add an existing A2A service agent
aor add --existing --a2a "https://<my-a2a-domain>/<uri>" my-agent
# Publish to AI-on-Rails
aor publish --token "<your-personal-token-obtained-on-aionrails.com>"
Examples
While you would expect aor to generate the necessary service definition files automatically,
several examples can be found in the examples folder to better understand the syntax for advanced users.
F.A.Q.
What happens when the peer agent changes its functionality or the protocol (e.g. inputs/outputs)?
Applications are versioned and more than one version can be published at the same time. When integrating with an agent published on AI-on-Rails, it is recommended to pin a specific version to continue using it even when newer revisions are getting published.
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
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 aor-0.2.0.tar.gz.
File metadata
- Download URL: aor-0.2.0.tar.gz
- Upload date:
- Size: 137.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46692496de5a1072f26b8ff85433961ee1606780ccd4e19e86b6347088c19a1e
|
|
| MD5 |
6c98416c13b5de342e5d6d166fe85b71
|
|
| BLAKE2b-256 |
3bdac617475647698078e602ce69f2815f9b4da31731f838bfeef12e83eec465
|
File details
Details for the file aor-0.2.0-py3-none-any.whl.
File metadata
- Download URL: aor-0.2.0-py3-none-any.whl
- Upload date:
- Size: 176.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd8dbde058d4521117359ce97f77bb3d20aaca95f6ef50324553d37f0b4d0d06
|
|
| MD5 |
e0bc2abad2163e7e0efa69601b5c0f53
|
|
| BLAKE2b-256 |
7fdcde82744628254017f6c2084043e5fa2af6ee9882b15313019dcfcf686007
|