@@ -36,7 +36,7 @@ Here is how an `extract` call might look for a single object:
3636
3737<CodeGroup >
3838``` typescript TypeScript
39- import { z } from ' zod' ;
39+ import { z } from ' zod/v3 ' ;
4040
4141const item = await page .extract ({
4242 instruction: " extract the price of the item" ,
@@ -70,7 +70,7 @@ Here is how an `extract` call might look for a list of objects.
7070
7171<CodeGroup >
7272``` typescript TypeScript
73- import { z } from ' zod' ;
73+ import { z } from ' zod/v3 ' ;
7474
7575const apartments = await page .extract ({
7676 instruction:
@@ -188,7 +188,7 @@ You can provide additional context to your schema to help the model extract the
188188
189189<CodeGroup >
190190``` typescript TypeScript
191- import { z } from ' zod' ;
191+ import { z } from ' zod/v3 ' ;
192192
193193const apartments = await page .extract ({
194194 instruction:
@@ -233,7 +233,7 @@ Here is how an `extract` call might look for extracting a link or URL. This also
233233
234234<CodeGroup >
235235``` typescript TypeScript
236- import { z } from ' zod' ;
236+ import { z } from ' zod/v3 ' ;
237237
238238const extraction = await page .extract ({
239239 instruction: " extract the link to the 'contact us' page" ,
@@ -430,4 +430,4 @@ for page_num in page_numbers:
430430 <Card title = " Observe" icon = " magnifying-glass" href = " /basics/observe" >
431431 Analyze pages with observe()
432432 </Card >
433- </CardGroup >
433+ </CardGroup >
0 commit comments