Skip to content

Commit 84476f1

Browse files
committed
Update structured-output.ts
1 parent 1d77c53 commit 84476f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/structured-output.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { spinner } from './utils';
77
// gets API Key from environment variable BROWSER_USE_API_KEY
88
const browseruse = new BrowserUse();
99

10+
// Define Structured Output Schema
1011
const HackerNewsResponse = z.object({
1112
title: z.string(),
1213
url: z.string(),
@@ -46,6 +47,8 @@ async function main() {
4647
log = `agent ${status.status} (${steps}${lastGoal}${liveUrl}) `;
4748

4849
await new Promise((resolve) => setTimeout(resolve, 2000));
50+
51+
break;
4952
}
5053

5154
case 'finished':

0 commit comments

Comments
 (0)