agents-0-22-0-13-b
Claude Code's read-only tools, web search on, ludion sync off
Question
What does agents/schedules export?
Answer key
- A correct answer says
- `agents/schedules` exports `Scheduler`, a Lifecycle capability for delayed, dated, cron and interval callbacks that any Durable Object can use, with typed `set()`/`every()`.
- The stale answer
- Scheduling is only available as `this.schedule()` on an Agent subclass.
Answer
`agents/schedules` exports one runtime value: the `Scheduler` class (`node_modules/agents/dist/schedules/index.js:2`). It also exports eight types: `Schedule`, `ScheduleCriteria`, `ScheduleOptions`, `SchedulerCallbacks`, `SchedulerEventType`, `SchedulerHandlers`, `SchedulerOptions` and `SchedulerPayload` (`index.d.ts:12-22`). All of them are re-exported from an internal bundled chunk (`scheduler-*.js`). The package also has a separate subpath, `agents/schedules/parser`, which isn't part of `agents/schedules`.Grade
correct
The judge's reason: It identifies `Scheduler` as the export of `agents/schedules` and does not claim scheduling is limited to `this.schedule()` on Agent, though it omits the Lifecycle-capability and typed `set()`/`every()` details.
Session log
Tool call: Glob
{ "pattern": "**/agents/schedules*" }Tool output
No files foundTool call: Glob
{ "pattern": "**/schedules*/**" }Tool output
node_modules\agents\dist\schedules\index.js node_modules\agents\dist\schedules\parser.js node_modules\agents\dist\schedules\parser.js.map node_modules\agents\dist\schedules\index.d.ts node_modules\agents\dist\schedules\parser.d.tsTool call: Read
{ "file_path": "C:\\Users\\haya0\\AppData\\Local\\Temp\\ludion-bench-oCsOTB\\work\\node_modules\\agents\\dist\\schedules\\index.d.ts" }Tool output
1 import { 2 a as ScheduleCriteria, 3 c as SchedulerHandlers, 4 i as Schedule, 5 l as SchedulerPayload, 6 n as SchedulerEventType, 7 o as ScheduleOptions, 8 r as SchedulerOptions, 9 s as SchedulerCallbacks, 10 t as Scheduler 11 } from "../scheduler-CrFCnv_J.js"; 12 export { 13 type Schedule, 14 type ScheduleCriteria, 15 type ScheduleOptions, 16 Scheduler, 17 type SchedulerCallbacks, 18 type SchedulerEventType, 19 type SchedulerHandlers, 20 type SchedulerOptions, 21 type SchedulerPayload 22 }; 23Tool call: Grep
{ "pattern": "schedules", "path": "C:\\Users\\haya0\\AppData\\Local\\Temp\\ludion-bench-oCsOTB\\work\\node_modules\\agents\\package.json", "output_mode": "content", "-C": 3 }Tool output
302- "import": "./dist/queue/index.js", 303- "require": "./dist/queue/index.js" 304- }, 305: "./schedules": { 306: "types": "./dist/schedules/index.d.ts", 307: "import": "./dist/schedules/index.js", 308: "require": "./dist/schedules/index.js" 309- }, 310: "./schedules/parser": { 311: "types": "./dist/schedules/parser.d.ts", 312: "import": "./dist/schedules/parser.js", 313: "require": "./dist/schedules/parser.js" 314- }, 315- "./workflows": { 316- "types": "./dist/workflows.d.ts",Tool call: Read
{ "file_path": "C:\\Users\\haya0\\AppData\\Local\\Temp\\ludion-bench-oCsOTB\\work\\node_modules\\agents\\dist\\schedules\\index.js" }Tool output
1 import { t as Scheduler } from "../scheduler-DZ3xQfeK.js"; 2 export { Scheduler }; 3Agent
`agents/schedules` exports one runtime value: the `Scheduler` class (`node_modules/agents/dist/schedules/index.js:2`). It also exports eight types: `Schedule`, `ScheduleCriteria`, `ScheduleOptions`, `SchedulerCallbacks`, `SchedulerEventType`, `SchedulerHandlers`, `SchedulerOptions` and `SchedulerPayload` (`index.d.ts:12-22`). All of them are re-exported from an internal bundled chunk (`scheduler-*.js`). The package also has a separate subpath, `agents/schedules/parser`, which isn't part of `agents/schedules`.