Alquimia-AI Tools
Library providing essential SDK functionality, hooks, and utilities for building Alquimia AI applications. This library serves as the core integration layer for AI-powered chat assistants. Its core components are the SDK and the useAlquimia hook, which are used to manage the assitant interactions, along with the UI components.
Overview
Alquimia Tools provides a comprehensive SDK and React UI components designed for building AI-powered chat assistants. Built with TypeScript and following best practices, it offers a flexible and maintainable solution for integrating Alquimia AI capabilities.
Key Features
🔧 Core SDK
AI Service Integration
Message Management
Streaming Support
Provider System
🎣 React Integration
Custom Hooks
State Management
Real-time Updates
TypeScript Support
🛠️ Tech Stack
Next.js 14+
React 18+
TypeScript 5.3+
🎯 Other Features
Speech-to-Text (Whisper)
Image Generation
Content Analysis
Feedback Collection
Logging System
Quick Links
Installation
Basic usage:
Initialize the SDK in a config file, and use the useAlquimia hook in your components.
Package Structure
Core Modules
SDK Configuration
The SDK supports various providers and configurations:
Available Providers
WhisperProvider (Speech-to-Text)
StableDiffusionProvider (Image Generation)
CharacterizationProvider (Content Analysis)
RatingsProvider (Feedback)
LoggerProvider (Logging)
Utility Functions
Message formatting
Error handling
Data transformation
Integration with UI Package
While usable independently, this package is designed to work seamlessly with @alquimia-ai/ui
, providing:
Ready-to-use chat interfaces
Message streaming visualization
Audio input/output handling
Rating and feedback components
Best Practices
Always initialize SDK with proper configuration
Use the useAlquimia hook for managing chat state
Implement server actions with API Routes
Leverage TypeScript for type safety
Related Links
License
Last updated