We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d77c53 commit 84476f1Copy full SHA for 84476f1
examples/structured-output.ts
@@ -7,6 +7,7 @@ import { spinner } from './utils';
7
// gets API Key from environment variable BROWSER_USE_API_KEY
8
const browseruse = new BrowserUse();
9
10
+// Define Structured Output Schema
11
const HackerNewsResponse = z.object({
12
title: z.string(),
13
url: z.string(),
@@ -46,6 +47,8 @@ async function main() {
46
47
log = `agent ${status.status} (${steps}${lastGoal}${liveUrl}) `;
48
49
await new Promise((resolve) => setTimeout(resolve, 2000));
50
+
51
+ break;
52
}
53
54
case 'finished':
0 commit comments