Edge (Cloudflare Workers)
AgentsKit running on Cloudflare Workers. Demonstrates the sub-50 KB hot path — adapter + ReadableStream, no runtime, no memory, no tools.
AgentsKit on Cloudflare Workers. Single-file Worker, one adapter, one ReadableStream. The bundle that runs per request is openai() plus the streaming bridge — measured well under the 50 KB target.
#What ships
src/worker.ts— single-file Worker.wrangler.jsonc—nodejs_compatenabled so@agentskit/adapterscan usefetch+AbortControllerfrom the Workers runtime.
pnpm --filter @agentskit/example-edge dev#Related
Explore nearby
- PeerExamples
Interactive demos. For copy-paste code, see Recipes.
- PeerBasic Chat
The simplest use case — streaming AI conversation with auto-scroll, stop button, and keyboard handling. All in 10 lines with AgentsKit.
- PeerTool Use
AI assistants that call functions — weather, search, DB queries. Tool calls render as expandable cards.
Teams Bot
Reference Microsoft Teams bot wrapping createChatTrigger from @agentskit/runtime. Consumes Bot Framework activities at /api/messages with injectable JWT verifier.
Embedded (CLI / Raycast / VS Code)
Same agent runs from anywhere. Three host integrations of the identical runtime — Node CLI, Raycast script command, VS Code task.