Cookbook
Cookbook
Runnable recipes auto-generated from packages/sdk/examples/.
Cookbook
Every recipe below is a real, runnable example from the SDK repo. Each one has been validated with a real LLM provider before shipping.
bedrock-bot— One-shot Claude prompt via AWS Bedrock (@theokit/sdkAdoption Roadmap #8; ADRs D286-D302).cache— DemonstratesCache.semantic+Cache.consult(Adoption Roadmap #6; ADRs D249-D266).email-bot— Minimal example of an email-driven agent using@theokit/gateway-email.eval— RunsEval.create / .runagainst a real LLM and prints aggregate +handoffs— Triage agent → billing/support specialist. Demonstrates theskills-google-workspace— Six runnable recipes for@theokit/skills-google-workspace. All recipes use the bundled `google-worslack-bot— Demonstrates@theokit/gateway-slack(Adoption Roadmap #7; ADRs D267-D285) — ateams-bot— Reference Microsoft Teams bot using@theokit/gateway-teams. Built on the modern `@microsoft/teams.vertex-bot— One-shot Gemini (or Claude) prompt via GCP Vertex AI (@theokit/sdkAdoption Roadmap #8; ADRs D286-whatsapp-bot— Reference WhatsApp bot using@theokit/gateway-whatsapp(Meta WhatsApp Business Cloud API backend).whatsapp-web-bot— WhatsApp bot using the unofficialwhatsapp-web.jssubprocess bridge backend (ADR D305).workflows— Multi-step pipeline: validate → classify (LLM) → branch (billing/support) → summarize.
Complex examples (GitHub link)
These examples are too large to inline. View them directly: