{"results":[{"url":"https://ai-sdk.dev/docs/agents/loop-control","title":"Loop Control","description":"Control agent execution with built-in loop management using stopWhen and prepareStep","score":117.58347692407588},{"url":"https://ai-sdk.dev/cookbook/next/human-in-the-loop","title":"Human-in-the-Loop with Next.js","description":"Add a human approval step to your agentic system with Next.js and the AI SDK","score":22.971371552373988}],"query":"prepareStep"}