Important
This repository is in a high state of flux, and might not build correctly at this moment, please be patient as rapid progress is made :)
A comprehensive toolset for working with AIML based workflows, both familiar, yet totally new! featuring a VSCode extension for enhanced development experience, a runtime enviorment, an API server, and a web based management UI!
- 🔬 Agent / Workflow Developer Web UI (In-Progress)
- Visual output of agent workflows including each LLM call's full input and output
- Logging/tracing UI for each request
- Debug prompt parsing issues
- Automated evaluation of agentic workflows
- Automated regression testing
- 👨💻 VSCode Language Support
- Syntax highlighting for AIML files
- Real-time validation and error diagnostics
- Intelligent code completion
- Hover information and documentation
- PLUS all the features of the evaluation UI
- 🚀 API Server
- Allows use of AIML features on top of any LLM provider supporting:
- OpenAI Chat API specification
- OpenAI Response API specification (In-Progress)
- Anthropic API specification ((TO BE BUILT)
- PostgreSQL backend for workflow state management
- Drizzle ORM for type-safe database operations
- Event subscription system
- Allows use of AIML features on top of any LLM provider supporting:
- 📊 Performance Monitoring & Analytics (TO BE BUILT)
- Real-time metrics dashboard for accuracy, costs, and latency
- Token usage tracking and optimization suggestions
- Response quality evaluation with configurable criteria
- A/B testing capabilities for prompt variations
- 🔍 Observability (TO BE BUILT)
- OpenTelemetry integration for distributed tracing
- Detailed execution logs with context
- Performance bottleneck identification
- Error rate monitoring and alerting
To use AIML you dont need to do anything except call an AIML enabled LLM API Such as Fireworks OpenAI compattible Chat API. See the docs here to get started with using AIML!
Prerequisites
- Bun (v1.1.42 or higher)
- Node.js (for VSCode extension development)
- PostgreSQL (for the API server)
- VSCode (for extension development)
-
Clone the repository:
git clone https://github.com/fw-ai-external/aiml.git cd aiml
-
Install dependencies:
bun install
-
Set up environment variables:
These need to be set via your environment or using .env files. If using .env files, you will need to do so in the project root as well as in /apps/server
cp .env.example .env && cp apps/server/.env.example apps/server/.env
Edit both .env
files with your credentials:
# Use the URL of your Postgres database
# You can use a local Postgres database by installing Postgres locally
# == OR ==
#Using a cloud based Postgres database such as Neon https://neon.tech
DATABASE_URL=postgresql://postgres:postgres@0.0.0.0:5432/aiml-server
-
Run database migrations:
bun run initial-setup
-
Get everything running (except the vscode plugin.... see below):
bun run dev
To get AIML syntax highlighting, auto-complete and more! Check out our IDE plugin docs