Main Components
Core building blocks for AI agents and pipelines in BoxLang - your guide to mastering AI development
🎯 What You'll Learn
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Messages │───▶│ AI Model │───▶│ Transform │───▶│ Result │
│ Template │ │ (OpenAI) │ │ (Extract) │ │ │
└─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘📚 Learning Path
START HERE
↓
┌──────────────────────────────────────────────────────────────┐
│ 1️⃣ Models - Connect to AI providers (OpenAI, Claude, etc.) │
└──────────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────────┐
│ 2️⃣ Messages - Build conversations with templates │
└──────────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────────┐
│ 3️⃣ Streaming - Real-time responses for better UX │
└──────────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────────┐
│ 4️⃣ Structured Output - Extract typed data from responses │
└──────────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────────┐
│ 5️⃣ Tools - Enable AI to call your functions │
└──────────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────────┐
│ 6️⃣ Memory - Maintain conversation context │
└──────────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────────┐
│ 7️⃣ Agents - Autonomous AI with memory & tools │
└──────────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────────┐
│ 8️⃣ Pipelines - Build composable AI workflows │
└──────────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────────┐
│ 9️⃣ Transformers - Data processing in pipelines │
└──────────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────────┐
│ 🔟 Vector Memory - Semantic search for RAG apps │
└──────────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────────┐
│ 1️⃣1️⃣ Document Loaders - Import content from any source │
└──────────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────────┐
│ 1️⃣2️⃣ RAG - Complete retrieval-augmented generation workflow │
└──────────────────────────────────────────────────────────────┘🧱 Core Components
1️⃣ AI Models
2️⃣ Messages
3️⃣ Streaming
5️⃣ Tools
6️⃣ Memory
7️⃣ Agents
8️⃣ Pipelines
9️⃣ Transformers
1️⃣1️⃣ Document Loaders
🔗 Understanding Pipelines
Basic Pipeline Flow
The .to() Method
.to() MethodPipeline Benefits
🎨 Common Patterns
Pattern 1: Simple Q&A
Pattern 2: Templated Conversations
Pattern 3: Agent with Tools
Pattern 4: RAG (Retrieval Augmented Generation)
Pattern 5: Multi-Step Processing
🚀 Quick Start Examples
Example 1: Your First Pipeline (3 lines)
Example 2: Chatbot with Memory (5 lines)
Example 3: Function Calling (8 lines)
Example 4: Data Extraction (6 lines)
💡 Tips for Success
Last updated