Skip to content

AdalFlow

FieldValue
DeveloperSylph.AI
LanguagePython
LicenseMIT
GitHubSylphAI-Inc/AdalFlow
Stars2.5K+
Used ByAdaL CLI

AdalFlow is the open-source library that powers AdaL CLI. It provides auto-differentiable LLM pipelines — meaning you can define an agent workflow and the framework will automatically optimize prompts, tool selection, and reasoning chains.

Think of it as PyTorch for LLM applications: modular, composable, and optimizable.

  • Auto-optimization — Built-in prompt tuning and pipeline optimization
  • Component architecture — Generator, Retriever, Agent components that compose naturally
  • Multi-model support — OpenAI, Anthropic, Google, local models
  • MCP integration — Native Model Context Protocol support
  • Memory management — Conversation history, compaction, session persistence
  • Skills system — Reusable agent capabilities (SKILL.md format)
AdalFlow Stack
├── Components (Generator, Retriever, Agent)
├── Optimization (Auto-diff, prompt tuning)
├── Model Clients (OpenAI, Anthropic, Google, Groq)
├── Tools (MCP, file ops, web search)
└── Memory (conversation, vector store, compaction)

✅ Building a self-evolving coding agent ✅ Need automatic prompt optimization ✅ Want MCP-native tool integration ✅ Building production agents with multi-model support

from adalflow.core import Generator
from adalflow.components.model_client import OpenAIClient
generator = Generator(
model_client=OpenAIClient(),
model_kwargs={"model": "gpt-4o"},
template="Answer the coding question: {{question}}"
)
response = generator(prompt_kwargs={"question": "How do I reverse a linked list?"})