The examples/ directory contains 34 files that demonstrate real usage patterns:
examples/open_deep_research/— a full multi-agent deep-research application with a Gradio UI (app.py), GAIA benchmark runner (run_gaia.py), and supporting scripts for web browsing, visual QA, text inspection, and Markdown conversion.examples/async_agent/— shows how to wrap agent runs in an async server.examples/server/— minimal HTTP server exposing an agent as an endpoint.examples/plan_customization/— demonstrates overriding the default planning prompts.examples/smolagents_benchmark/— benchmark harness with a scoring notebook.- Standalone scripts:
rag.py,rag_using_chromadb.py,text_to_sql.py,multi_llm_agent.py,sandboxed_execution.py,structured_output_tool.py,gradio_ui.py.
These examples are excluded from ruff's E402 (module-import-not-at-top-of-file) rule. The dev extra in pyproject.toml adds sqlalchemy specifically to support the text_to_sql.py example.
examples/pyproject.toml