Aintent Framework π
@openpandacodes
A Model Context Protocol server for processing travel intents based on Deep Intent Architecture. This server provides a robust API for managing travel intents, generating deep flows, and creating DIML (Deep Intent Markup Language) representations.
Overview
What is Aintent Framework π?
Aintent Framework π is a Model Context Protocol (MCP) server that processes natural language intents into structured, actionable formats. It provides a robust API for managing and processing intents with a focus on extensibility and reliability, targeting developers building intent-aware applications.
How to use Aintent Framework π?
Clone the repository, run npm install, copy .env.example to .env, then start a development server with npm run dev (with hot reloading) or build and start production with npm run build and npm start. Use the API endpoints: POST /api/intent to create an intent and GET /api/intent/:id to retrieve one.
Key features of Aintent Framework π
- Intent Processing: Create, retrieve, and process intents through a well-defined API.
- Natural Language Understanding: Parse and understand raw user intentions.
- Intent Decomposition: Transform intentions into structured objects with goals and constraints.
- Flexible Storage: Pluggable storage system with built-in in-memory implementation.
- Type Safety: Full TypeScript implementation with comprehensive type definitions.
- Error Handling: Robust error handling and logging system.
Use cases of Aintent Framework π
- Building smart assistants that convert user requests into actionable workflows.
- Creating chatbots that parse and structure complex natural language commands.
- Developing goal-oriented systems that decompose high-level intents into tasks.
- Prototyping intent-driven applications with a clean, extensible API.
FAQ from Aintent Framework π
What runtime dependencies does Aintent Framework π have?
Node.js v18 or higher is required, along with npm or yarn.
How is data stored in Aintent Framework π?
The server uses a pluggable storage system. The built-in implementation is inβmemory storage; you can replace it with other backends via the StorageInterface.
What does the internal Intent structure look like?
Each intent is an object with a unique ID, raw text, processed fields (goals, constraints, metadata), status (pending, processing, completed, failed), and timestamps.
Does Aintent Framework π include testing?
Yes, it includes a comprehensive test suite using Jest. Run tests with npm test or npm run test:coverage.
How does the server handle errors?
It uses custom error classes, proper HTTP status codes and error responses, and structured logging for debugging.