Robota SDK Documentation
A powerful TypeScript library for building AI agents with multi-provider support, built with a modular Manager pattern architecture.
Features
- Multi-Provider Support: OpenAI, Anthropic, Google AI with easy provider switching
- Manager Pattern Architecture: Clean separation with AIProviderManager, ToolProviderManager, SystemMessageManager, etc.
- Type-Safe Function Calling: Zod-based tools, MCP integration, OpenAPI support
- Conversation Management: Built-in history management with configurable limits
- Analytics & Monitoring: Request tracking, token usage analytics, limit management
- Streaming Support: Real-time streaming across all providers
Documentation Structure
Main Documentation
- Home - Overview and quick start guide
- AI Providers & Tools - Learn about supported providers and tools
- Examples - Comprehensive examples and tutorials
- API Reference - Complete API documentation
Getting Started
- Environment Setup - Detailed setup instructions
- Development Guidelines - Architecture patterns and best practices
Core Documentation
- Architecture Overview - Manager pattern and service layer
- System Messages - System message management strategies
Package Documentation
- Core Package - Core functionality with Manager pattern
- OpenAI Package - OpenAI provider integration
- Anthropic Package - Anthropic provider integration
- Google Package - Google AI provider integration
- Tools Package - Function calling and tool providers
Development Standards
- Testing Guidelines - Mock usage and test organization
- Build and Deployment - Build configuration and CI/CD
- Code Quality Standards - Linting and console output guidelines
- Code Improvements - Implementation patterns and refactoring
Advanced Topics
- OpenAPI Integration - OpenAPI tool integration
- Package Publishing - Package publishing guidelines
- Documentation Site Setup - Documentation website setup
Project Management
- Roadmap - Project roadmap and future plans
Quick Start
typescript
import { Robota, OpenAIProvider } from '@robota-sdk/core';
import OpenAI from 'openai';
const openaiClient = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
const openaiProvider = new OpenAIProvider(openaiClient);
const robota = new Robota({
aiProviders: { 'openai': openaiProvider },
currentProvider: 'openai',
currentModel: 'gpt-4',
systemPrompt: 'You are a helpful AI assistant.'
});
const response = await robota.run('Hello! How can I help you today?');
console.log(response);
Quick Links
- Examples: Check out comprehensive examples in
apps/examples
- Providers: Learn about AI Providers & Tools
- Architecture: Understand the Manager Pattern
- Contributing: Read our Development Guidelines
Current Version
Core package: v0.3.2 - Latest stable release with Manager pattern architecture
License
MIT License - see LICENSE file for details.