Skip to content

Robota SDK โ€‹

A powerful TypeScript library for building AI agents with multi-provider support, function calling, tool integration, and multi-agent team collaboration.

๐Ÿš€ Why Choose Robota SDK? โ€‹

๐ŸŽฏ Streamlined Configuration โ€‹

  • Runtime Model Switching: Switch between AI providers and models dynamically using setModel()
  • Centralized Model Configuration: Single source of truth for model settings through defaultModel

๐Ÿ”’ Enterprise-Grade Type Safety โ€‹

  • 100% TypeScript: Complete type coverage with zero any types
  • Compile-time Validation: Catch errors before they reach production
  • IntelliSense Everything: Full IDE support for all APIs

โšก Performance & Efficiency โ€‹

  • Streaming Support: Real-time responses from all providers with runStream()
  • Built-in Analytics: Monitor performance, costs, and usage patterns through plugins
  • Conversation Management: Built-in history tracking and context preservation

๐ŸŒ True Multi-Provider Freedom โ€‹

  • Provider Agnostic: Switch between OpenAI, Anthropic, and Google seamlessly
  • Unified Interface: Same code works with all providers
  • Cross-Provider Teams: Mix different AI models in one team

๐ŸŒ Universal Platform Support โ€‹

  • Cross-Platform: Works in Node.js, browsers, and WebWorkers
  • Zero Breaking Changes: Existing code runs everywhere unchanged
  • Framework Agnostic: React, Vue, Svelte, or vanilla JavaScript
  • Security First: Proxy server patterns for secure browser deployment

Features โ€‹

  • Multi-Provider Support: OpenAI, Anthropic, Google AI with seamless switching
  • Cross-Platform Compatibility: Node.js, browsers, WebWorkers support
  • Multi-Agent Teams: Create collaborative AI teams with specialized roles using @robota-sdk/team
  • Type-Safe Function Calling: Zod schemas and tool integration
  • Plugin System: Extensible architecture with conversation history, analytics, and error handling plugins
  • Streaming Support: Real-time responses from all providers
  • Conversation Management: Built-in history and context management
  • Team Workflow Analysis: Generate flowcharts and relationship diagrams
  • Modular Architecture: Clean separation of concerns

Quick Start โ€‹

Single Agent โ€‹

typescript
import { Robota } from '@robota-sdk/agents';
import { OpenAIProvider } from '@robota-sdk/openai';

const openaiProvider = new OpenAIProvider({ apiKey: process.env.OPENAI_API_KEY });

const robota = new Robota({
    name: 'MyAssistant',
    aiProviders: [openaiProvider],
    defaultModel: {
        provider: 'openai',
        model: 'gpt-4',
        systemMessage: 'You are a helpful AI assistant.'
    }
});

const response = await robota.run('Hello! How can I help you today?');
console.log(response);

Multi-Agent Team โ€‹

typescript
import { createTeam } from '@robota-sdk/team';
import { OpenAIProvider } from '@robota-sdk/openai';
import { AnthropicProvider } from '@robota-sdk/anthropic';

const openaiProvider = new OpenAIProvider({ apiKey: process.env.OPENAI_API_KEY });
const anthropicProvider = new AnthropicProvider({ apiKey: process.env.ANTHROPIC_API_KEY });

const team = await createTeam({
    aiProviders: [openaiProvider, anthropicProvider]
});

const result = await team.execute(
    "Develop a marketing strategy for a new AI-powered fitness app"
);
console.log(result);

Browser Usage โ€‹

typescript
// Works the same way in browsers!
import { Robota, LoggingPlugin } from '@robota-sdk/agents';
import { OpenAIProvider } from '@robota-sdk/openai';

const robota = new Robota({
    name: 'BrowserAgent',
    aiProviders: [
        new OpenAIProvider({
            apiKey: process.env.NEXT_PUBLIC_OPENAI_API_KEY // or use proxy
        })
    ],
    plugins: [
        new LoggingPlugin({ strategy: 'console' }) // browser-friendly
    ]
});

const response = await robota.run('Hello from browser!');

Installation โ€‹

bash
# Core package
npm install @robota-sdk/agents

# AI Providers (choose one or more)
npm install @robota-sdk/openai openai
npm install @robota-sdk/anthropic @anthropic-ai/sdk
npm install @robota-sdk/google @google/generative-ai

# Team collaboration
npm install @robota-sdk/team

๐Ÿ“ฆ Package Ecosystem โ€‹

@robota-sdk/agents โ€‹

The Core Intelligence Hub

  • ๐Ÿง  Complete agent implementation with plugin system
  • ๐Ÿ”Œ Extensible architecture for custom functionality
  • ๐Ÿ“Š Built-in performance monitoring and analytics
  • ๐Ÿ› ๏ธ Type-safe tool integration framework

@robota-sdk/openai โ€‹

OpenAI Integration Excellence

  • โœจ Full GPT-4, GPT-3.5 model support
  • ๐Ÿ”„ Automatic retry with exponential backoff
  • ๐Ÿ“ˆ Token usage tracking and optimization
  • ๐Ÿ–ผ๏ธ Vision model support (GPT-4V)

@robota-sdk/anthropic โ€‹

Claude AI Mastery

  • ๐ŸŽญ Claude 3.5 Sonnet & Claude 3 family support
  • ๐Ÿ“š 100K+ token context window handling
  • ๐Ÿงช Advanced reasoning capabilities
  • ๐Ÿ”’ Privacy-focused AI interactions

@robota-sdk/google โ€‹

Google AI Innovation

  • ๐ŸŒŸ Gemini 1.5 Pro & Flash models
  • ๐ŸŽจ Native multimodal support
  • ๐Ÿ“ 1M+ token context capability
  • ๐Ÿš€ Fastest response times

@robota-sdk/team โ€‹

Collaborative AI Orchestration

  • ๐Ÿ‘ฅ Automatic task delegation to specialized agents
  • ๐ŸŽฏ Role-based agent selection
  • ๐Ÿ“Š Team performance analytics
  • ๐Ÿ”„ Cross-provider collaboration

Team Collaboration Templates โ€‹

The @robota-sdk/team package includes pre-configured agent templates for team collaboration:

  • Task Coordinator - Analyzes and delegates complex tasks to specialist agents
  • Domain Researcher - Deep research and analysis using Anthropic models
  • Creative Ideator - Brainstorming and creative solutions with higher temperature settings
  • Ethical Reviewer - Evaluates ethical implications with focus on responsible AI
  • Fast Executor - Quick task execution using efficient models
  • Summarizer - Content summarization and synthesis

Note: These templates are specifically designed for the team collaboration system and are not standalone agent configurations.

Documentation โ€‹

For Users โ€‹

For Developers โ€‹

  • Development - Development guidelines and setup
  • Project - Project roadmap and information
  • Packages - Individual package documentation

Supported Providers โ€‹

ProviderModelsFeaturesBest For
OpenAIGPT-4, GPT-3.5Function calling, streaming, visionGeneral purpose, code generation
AnthropicClaude 3.5 Sonnet, Claude 3Large context, advanced reasoningComplex analysis, ethical considerations
GoogleGemini 1.5 Pro, Gemini FlashMultimodal, long contextSpeed, multimedia processing

Team Collaboration Features โ€‹

  • Automatic Agent Selection - Natural language task assignment
  • Template-based Configuration - Pre-optimized settings for each role
  • Workflow Visualization - Generate Mermaid diagrams of team processes
  • Performance Analytics - Track team efficiency and token usage
  • Cross-Provider Teams - Mix different AI providers in one team

๐ŸŽฏ Key Benefits โ€‹

  • Rapid Development: Build AI agents with minimal boilerplate code
  • Type Safety: Complete TypeScript coverage with zero any types
  • Provider Flexibility: Easy switching between OpenAI, Anthropic, and Google AI
  • Extensible Architecture: Plugin system for custom functionality

License โ€‹

MIT License - see LICENSE file for details.

Released under the MIT License.