agents-0-27-0-0-b
Claude Code's read-only tools, web search on, ludion sync on
Question
Is Channels in the Cloudflare agents package stable, and what's its import path?
Answer key
- A correct answer says
- The `agents/channels` entry point is gone; Channels now lives under `agents/experimental/channels` (Slack, Telegram and Email under its subpaths) and is experimental.
- The stale answer
- Import Channels (ChannelHost, Slack/Telegram/Email adapters) from `agents/channels`.
Answer
No, Channels isn't stable. In the installed `agents` package (0.27.0 per this project's lessons file), it's only exported under an experimental path. The main import is `agents/experimental/channels`. Each transport has its own subpath: `agents/experimental/channels/email`, `/slack`, `/telegram` and `/web`, and the web one also has `/web/client` and `/web/ai-sdk`. I found this in `node_modules/agents/package.json` and there's no non-experimental export, so expect the API to change between releases.Grade
correct
The judge's reason: It says Channels is experimental, gives the `agents/experimental/channels` path with Slack/Telegram/Email subpaths, and notes there is no non-experimental export.
Session log
Tool call: Grep
{ "pattern": "channel", "path": "C:\\Users\\haya0\\AppData\\Local\\Temp\\ludion-bench-VRI6Bp\\work\\node_modules\\agents\\package.json", "-i": true, "output_mode": "content" }Tool output
455: "./experimental/channels": { 456: "types": "./dist/experimental/channels/index.d.ts", 457: "import": "./dist/experimental/channels/index.js", 458: "require": "./dist/experimental/channels/index.js" 460: "./experimental/channels/email": { 461: "types": "./dist/experimental/channels/email/index.d.ts", 462: "import": "./dist/experimental/channels/email/index.js", 463: "require": "./dist/experimental/channels/email/index.js" 465: "./experimental/channels/slack": { 466: "types": "./dist/experimental/channels/slack/index.d.ts", 467: "import": "./dist/experimental/channels/slack/index.js", 468: "require": "./dist/experimental/channels/slack/index.js" 470: "./experimental/channels/telegram": { 471: "types": "./dist/experimental/channels/telegram/index.d.ts", 472: "import": "./dist/experimental/channels/telegram/index.js", 473: "require": "./dist/experimental/channels/telegram/index.js" 475: "./experimental/channels/web": { 476: "types": "./dist/experimental/channels/web/index.d.ts", 477: "import": "./dist/experimental/channels/web/index.js", 478: "require": "./dist/experimental/channels/web/index.js" 480: "./experimental/channels/web/client": { 481: "types": "./dist/experimental/channels/web/client.d.ts", 482: "import": "./dist/experimental/channels/web/client.js", 483: "require": "./dist/experimental/channels/web/client.js" 485: "./experimental/channels/web/ai-sdk": { 486: "types": "./dist/experimental/channels/web/ai-sdk.d.ts", 487: "import": "./dist/experimental/channels/web/ai-sdk.js", 488: "require": "./dist/experimental/channels/web/ai-sdk.js" 545: "test:channels": "vitest --project channels",Agent
No, Channels isn't stable. In the installed `agents` package (0.27.0 per this project's lessons file), it's only exported under an experimental path. The main import is `agents/experimental/channels`. Each transport has its own subpath: `agents/experimental/channels/email`, `/slack`, `/telegram` and `/web`, and the web one also has `/web/client` and `/web/ai-sdk`. I found this in `node_modules/agents/package.json` and there's no non-experimental export, so expect the API to change between releases.