File tree Expand file tree Collapse file tree 5 files changed +7
-1
lines changed Expand file tree Collapse file tree 5 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ export const extract_hamilton_weather: EvalFunction = async ({
15
15
const { debugUrl, sessionUrl } = initResponse ;
16
16
17
17
try {
18
- await stagehand . page . goto ( "https://hamilton-weather.surge.sh/" ) ;
18
+ await stagehand . page . goto (
19
+ "https://browserbase.github.io/stagehand-eval-sites/sites/hamilton-weather/" ,
20
+ ) ;
19
21
const xpath =
20
22
"/html/body[1]/div[5]/main[1]/article[1]/div[6]/div[2]/div[1]/table[1]" ;
21
23
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export const hn_aisdk: EvalFunction = async ({ logger }) => {
17
17
await stagehand . page . goto ( "https://news.ycombinator.com" ) ;
18
18
19
19
let { story } = await stagehand . page . extract ( {
20
+ instruction : "extract the title of the top story on the page" ,
20
21
schema : z . object ( {
21
22
story : z . string ( ) . describe ( "the title of the top story on the page" ) ,
22
23
} ) ,
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export const hn_customOpenAI: EvalFunction = async ({ logger }) => {
20
20
await stagehand . page . goto ( "https://news.ycombinator.com" ) ;
21
21
22
22
let { story } = await stagehand . page . extract ( {
23
+ instruction : "extract the title of the top story on the page" ,
23
24
schema : z . object ( {
24
25
story : z . string ( ) . describe ( "the title of the top story on the page" ) ,
25
26
} ) ,
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export const hn_langchain: EvalFunction = async ({ logger }) => {
19
19
await stagehand . page . goto ( "https://news.ycombinator.com" ) ;
20
20
21
21
let { story } = await stagehand . page . extract ( {
22
+ instruction : "extract the title of the top story on the page" ,
22
23
schema : z . object ( {
23
24
story : z . string ( ) . describe ( "the title of the top story on the page" ) ,
24
25
} ) ,
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ async function example() {
16
16
await stagehand . page . goto ( "https://news.ycombinator.com" ) ;
17
17
18
18
const { story } = await stagehand . page . extract ( {
19
+ instruction : "extract the title of the top story on the page" ,
19
20
schema : z . object ( {
20
21
story : z . string ( ) . describe ( "the top story on the page" ) ,
21
22
} ) ,
You can’t perform that action at this time.
0 commit comments