Skip to content

Commit c0adda6

Browse files
committed
Update run.ts
1 parent 0a3a1c3 commit c0adda6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/run.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ async function basic() {
2727
const HackerNewsResponse = z.object({
2828
title: z.string(),
2929
url: z.string(),
30-
score: z.number(),
3130
});
3231

3332
const TaskOutput = z.object({
@@ -39,7 +38,7 @@ async function structured() {
3938

4039
// Create Task
4140
const rsp = await browseruse.tasks.run({
42-
task: 'Search for the top 10 Hacker News posts and return the title, url, and score',
41+
task: 'Search for the top 10 Hacker News posts and return the title and url!',
4342
schema: TaskOutput,
4443
agentSettings: { llm: 'gpt-4.1' },
4544
});
@@ -53,7 +52,7 @@ async function structured() {
5352
console.log(`Structured: Top Hacker News posts:`);
5453

5554
for (const post of posts) {
56-
console.log(`${post.title} (${post.score}) - ${post.url}`);
55+
console.log(` - ${post.title} - ${post.url}`);
5756
}
5857

5958
console.log(`\nStructured: DONE`);

0 commit comments

Comments
 (0)