interface Plan { steps: string[]; } const plan = await agent("planner", { system: "You plan tasks" }).ask("Make a plan"); return plan.steps.length;