Skip to main content

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