Adalflow

From VectorSpaceLab/AREX-Skill · View interactive version

Adalflow is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Use AdalFlow to build, debug, evaluate, optimize, trace, and operate LLM task pipelines, RAG systems, agents, tools, and structured-output workflows.

How to use this skill

Skill file

AdalFlow Repo Skill

Use this skill when a task involves the AdalFlow Python package: building model-agnostic LLM task pipelines, structured outputs, RAG, agents, tool calling, evaluation, prompt/few-shot/text-gradient optimization, or tracing.

AdalFlow uses PyTorch-like Component building blocks. A typical workflow combines Prompt, ModelClient, Generator, DataClass/parser objects, retrievers, tools, agents, metrics, and tracing callbacks.

First checks

  1. Read repository provenance before assuming this skill is current for a checkout.
  2. For a package install/import task, read package overview and root troubleshooting.
  3. For a quick environment smoke, run check_adalflow_environment.py in the target Python environment.
  4. Then route to the most specific sub-skill below.

Install/import guidance

For AdalFlow 1.1.1, use Python 3.9+ and include the OpenAI SDK for reliable top-level import because the current Generator module imports OpenAI response event types:

python -m pip install "adalflow[openai]"
python - <<'PY'
import adalflow as adal
print(adal.__version__)
from adalflow import Component, DataClass, Generator, Agent, Runner
print("adalflow import ok")
PY

Install additional extras only for workflows that need them, such as provider SDKs, FAISS/LanceDB/Postgres/Qdrant retrieval, MCP, torch/transformers, datasets, or SQLAlchemy. Do not treat a missing API key, service, dataset, or accelerator as a base package failure.

Route map

Core components and structured I/O

Read core-components-and-structured-io for:

Model clients, generators, and embedders

Read model-client-and-generator-workflows for:

Retrieval, RAG, and data pipelines

Read retrieval-rag-and-data-pipelines for:

Agents, tools, streaming, HITL, and MCP

Read agents-tools-and-streaming for:

Evaluation and optimization

Read evaluation-and-optimization for:

Tracing, observability, and configuration

Read tracing-observability-and-configuration for:

Cross-workflow rules

When not to use this skill

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.