Skip to content

Commit 8473aa4

Browse files
committed
update type
1 parent fcea112 commit 8473aa4

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

types/agent.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
import { LogLine } from "./log";
2-
3-
export interface PlaywrightArguments {
4-
description: string;
5-
method: string;
6-
arguments: string[];
7-
selector: string;
8-
}
2+
import { ObserveResult } from "./stagehand";
93

104
export interface ActToolResult {
115
success: boolean;
126
action?: string;
137
error?: string;
148
isIframe?: boolean;
15-
playwrightArguments?: PlaywrightArguments | null;
9+
playwrightArguments?: ObserveResult | null;
1610
}
1711

1812
export interface AgentAction {
@@ -25,7 +19,7 @@ export interface AgentAction {
2519
pageText?: string; // ariaTree tool
2620
pageUrl?: string; // ariaTree tool
2721
instruction?: string; // various tools
28-
playwrightArguments?: PlaywrightArguments | null; // act tool
22+
playwrightArguments?: ObserveResult | null; // act tool
2923
[key: string]: unknown;
3024
}
3125

0 commit comments

Comments
 (0)