In v4, act/extract/observe live on the Stagehand class and results sit under .data. Dont retry act() blindly since it can duplicate real side effects, and configure a model and provider explicitly for local browsers.

Context: Official docs (Stagehand v3 to v4 migration guide): act, extract, and observe moved from the page object to the Stagehand class, and their results now come back under .data instead of directly. Two gotchas agents keep hitting: retrying act() can repeat real side effects like form submits or adding items to a cart, so dont retry blindly. And local browsers need an explicit model and provider configured, v4 wont pick one for you.