Welcome to Build AI Agent SDK
Build AI Agent SDK is a powerful, framework-agnostic library for building intelligent AI agents. It provides a clean, type-safe API for creating agents with tools, flows, and custom capabilities.
Why Build AI Agent SDK?โ
Building AI agents shouldn't be complicated. Our SDK provides:
- ๐ฏ Framework Agnostic - Works with React, Vue, Svelte, Angular, Express, or vanilla JavaScript
- ๐ง Extensible - Easy to add custom tools, flows, and providers
- ๐งช Type-Safe - Full TypeScript support with comprehensive type definitions
- ๐ฆ Modular - Use only what you need with tree-shakeable exports
- ๐ Production Ready - Built-in error handling, retries, and circuit breakers
- ๐ Secure - Built-in encryption, hashing, and security utilities
- ๐พ Storage - File storage with concurrency locking
- ๐จ Templates - Jinja2-like template rendering for prompts
- ๐ Streaming - Real-time streaming responses
- ๐ง Memory - Conversation context and memory management
Quick Exampleโ
Here's a simple chatbot in just a few lines of code:
import { AgentBuilder, AgentExecutor, OpenAIProvider } from '@tajwal/build-ai-agent';
// Create an agent
const agent = new AgentBuilder()
.setType('chatbot')
.setName('Customer Support Bot')
.setPrompt('You are a helpful customer support assistant.')
.build();
// Execute
const executor = new AgentExecutor({
agent,
sessionId: 'session-123',
llmProvider: new OpenAIProvider({ apiKey: process.env.OPENAI_API_KEY })
});
const result = await executor.execute({
messages: [{ role: 'user', content: 'Hello! I need help.' }]
});
console.log(result.response);
Perfect Forโ
- ๐ค Building chatbots and virtual assistants
- ๐ Creating automated workflows
- ๐ ๏ธ Integrating LLMs into existing applications
- ๐ฏ Developing custom AI-powered tools
- ๐ Building data analysis agents
- ๐ผ Creating customer support systems
Get Startedโ
Ready to build your first AI agent? Follow our Installation Guide to get started, or jump straight to the Quick Start tutorial.
Licenseโ
MIT ยฉ Almosafer