Skip to content

Commit e9c63f6

Browse files
committed
lint
1 parent 8d4f29d commit e9c63f6

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

packages/core/examples/agent_stream_example.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { Stagehand } from "../lib/v3";
32
import dotenv from "dotenv";
43
import chalk from "chalk";
@@ -20,21 +19,17 @@ async function main() {
2019

2120
try {
2221
const page = stagehand.context.pages()[0];
23-
await page.goto(
24-
"https://amazon.com",
25-
);
22+
await page.goto("https://amazon.com");
2623
const agent = stagehand.agent({
2724
model: "anthropic/claude-sonnet-4-5-20250929",
2825
executionModel: "google/gemini-2.5-flash",
29-
3026
});
3127

3228
const result = await agent.stream({
33-
instruction:
34-
"go to amazon, and seach for shampoo, stop after searching",
29+
instruction: "go to amazon, and seach for shampoo, stop after searching",
3530
maxSteps: 20,
3631
});
37-
// stream the text
32+
// stream the text
3833
for await (const delta of result.textStream) {
3934
process.stdout.write(delta);
4035
}
@@ -43,7 +38,6 @@ async function main() {
4338
// console.log(delta);
4439
// }
4540

46-
4741
const finalResult = await result.result;
4842
console.log("Final Result:", finalResult);
4943
} catch (error) {

0 commit comments

Comments
 (0)