This folder contains runnable code samples that map to the workshop plan. The practical flow is built around an email triage agent that classifies incoming emails into task, event, or no_action and routes them to downstream agents.
Most demos use the official Vercel AI SDK (ai npm package). The SDK step (src/02-sdk/) uses the Google ADK (@google/adk). A mock model or local fallback is provided for offline runs.
cd 2026-02-28-holyjs-workshop
node -v
npm install
npm run start:01- Теория про агентов. Что такое вообще
- See
src/runtime/README.mdfor the runtime model and architecture notes.
- See
- Разработка агента "на коленке"
- Run
npm run start:01and opensrc/01-standalone/run.js.
- Run
- Теория про SDK для агентов
- See
src/02-sdk/README.mdfor the Google ADK overview.
- See
- Разработка агента на SDK
- Run
npm run start:02and opensrc/02-sdk/run.js.
- Run
- Теория про оркестрацию. Что делать, когда агентов несколько
- Run
npm run start:03and opensrc/03-orchestrator/run.js.
- Run
- Разработка ещё одного-двух агентов и встраивание его в n8n
- Run
npm run start:04and opensrc/04-n8n/README.md.
- Run
- Теория общих правил оркестрации. Безопасность, мониторинг и т.д.
- Run
npm run start:05and opensrc/05-security-observability/run.js.
- Run
- Практика
- Use
src/examples/for exercises and tasks.
- Use
- Конец
src/agents/email router + downstream agentssrc/ai/model selection (real model or mock)src/01-standalone/from-scratch agent loopsrc/02-sdk/Google ADK usagesrc/03-orchestrator/multi-agent coordinationsrc/04-n8n/n8n webhook integration mocksrc/05-security-observability/policies, tracing, guardrailssrc/examples/practice tasks and sample emailssrc/runtime/runtime model notes (kept for theory section)
- The AI SDK uses a mock model when
OPENAI_API_KEYis not set. - The ADK demo uses Gemini when
GOOGLE_API_KEYorGEMINI_API_KEYis set, otherwise it falls back locally. - The ADK demo also supports OpenAI or a local OpenAI-compatible endpoint via
SDK_PROVIDER; seesrc/02-sdk/README.md. - Replace the model in
src/ai/model.jswhen using a real provider.