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
typesCompile-time Validation : Catch errors before they reach productionIntelliSense Everything : Full IDE support for all APIsStreaming Support : Real-time responses from all providers with runStream()
Built-in Analytics : Monitor performance, costs, and usage patterns through pluginsConversation Management : Built-in history tracking and context preservation๐ True Multi-Provider Freedom Provider Agnostic : Switch between OpenAI, Anthropic, and Google seamlesslyUnified Interface : Same code works with all providersCross-Provider Teams : Mix different AI models in one teamCross-Platform : Works in Node.js, browsers, and WebWorkersZero Breaking Changes : Existing code runs everywhere unchangedFramework Agnostic : React, Vue, Svelte, or vanilla JavaScriptSecurity First : Proxy server patterns for secure browser deploymentFeatures Multi-Provider Support : OpenAI, Anthropic, Google AI with seamless switchingCross-Platform Compatibility : Node.js, browsers, WebWorkers supportMulti-Agent Teams : Create collaborative AI teams with specialized roles using @robota-sdk/team
Type-Safe Function Calling : Zod schemas and tool integrationPlugin System : Extensible architecture with conversation history, analytics, and error handling pluginsStreaming Support : Real-time responses from all providersConversation Management : Built-in history and context managementTeam Workflow Analysis : Generate flowcharts and relationship diagramsModular Architecture : Clean separation of concernsQuick 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 agentsDomain Researcher - Deep research and analysis using Anthropic modelsCreative Ideator - Brainstorming and creative solutions with higher temperature settingsEthical Reviewer - Evaluates ethical implications with focus on responsible AIFast Executor - Quick task execution using efficient modelsSummarizer - Content summarization and synthesisNote: 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 setupProject - Project roadmap and informationPackages - Individual package documentationSupported Providers Provider Models Features Best For OpenAI GPT-4, GPT-3.5 Function calling, streaming, vision General purpose, code generation Anthropic Claude 3.5 Sonnet, Claude 3 Large context, advanced reasoning Complex analysis, ethical considerations Google Gemini 1.5 Pro, Gemini Flash Multimodal, long context Speed, multimedia processing
Team Collaboration Features Automatic Agent Selection - Natural language task assignmentTemplate-based Configuration - Pre-optimized settings for each roleWorkflow Visualization - Generate Mermaid diagrams of team processesPerformance Analytics - Track team efficiency and token usageCross-Provider Teams - Mix different AI providers in one team๐ฏ Key Benefits Rapid Development : Build AI agents with minimal boilerplate codeType Safety : Complete TypeScript coverage with zero any
typesProvider Flexibility : Easy switching between OpenAI, Anthropic, and Google AIExtensible Architecture : Plugin system for custom functionalityLicense MIT License - see LICENSE file for details.