Skip to main content

Cookbook

Practical, copy-paste-ready recipes for every supported AI framework and feature.

Each recipe is self-contained. Pick the ones relevant to your stack.

Want runnable code?

See Runnable Examples — all 12 complete, tested examples verified against a local Ollama gemma3:4b instance with a pass/fail test runner.


Framework Compatibility

FrameworkPackageTested Versions
LangChainlangchain-core>= 0.2, 1.x
LangGraphlanggraph>= 0.1, 1.x
AutoGen (new)autogen-agentchat>= 0.4, 0.7.x
AutoGen (legacy)pyautogen0.2.x
CrewAIcrewai>= 0.28, 1.x
Agnoagno>= 0.1, 2.x
A2Aa2a-sdk>= 0.2, 0.3.x

Recipes by Topic

Setup and Configuration

  • Core Recipes — In-memory, disk, env vars, TTL policies, invalidation setup

Framework Integration

  • LangChain — Global cache, disk backend, async embeddings, middleware
  • LangGraph — State graph checkpointing, history, multi-agent
  • AutoGen — 0.4+ async, group chat, 0.2.x legacy, combined embeddings
  • CrewAI — Crew kickoff, async, invalidation, retrieval in tools
  • Agno — Sync/async agent, team pipelines, tool caching, context sessions
  • A2A — Process, wrap decorator, async, multi-agent pipeline

Advanced Features

End-to-End