Skip to content

Commit 19ba1df

Browse files
committed
Update PR #2335
1 parent 0b9b9ca commit 19ba1df

2 files changed

Lines changed: 7 additions & 18 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"braintrust": minor
3+
---
4+
5+
feat: Add stagehand instrumentation

‎js/src/vendor-sdk-types/stagehand.ts‎

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,27 @@
55
* Braintrust SDK does not take a runtime or type dependency on Stagehand.
66
*/
77

8-
export type StagehandAction = {
9-
method?: unknown;
10-
};
11-
128
export type StagehandActResult = {
139
success?: unknown;
1410
actions?: unknown;
1511
cacheStatus?: unknown;
1612
};
1713

18-
export type StagehandAgentUsage = {
14+
type StagehandAgentUsage = {
1915
input_tokens?: unknown;
2016
output_tokens?: unknown;
2117
reasoning_tokens?: unknown;
2218
cached_input_tokens?: unknown;
2319
};
2420

25-
export type StagehandAgentAction = {
26-
type?: unknown;
27-
taskCompleted?: unknown;
28-
task_completed?: unknown;
29-
timeMs?: unknown;
30-
time_ms?: unknown;
31-
};
32-
3321
export type StagehandAgentResult = {
3422
success?: unknown;
3523
completed?: unknown;
3624
message?: unknown;
3725
output?: unknown;
3826
actions?: unknown;
3927
metadata?: unknown;
40-
usage?: StagehandAgentUsage | unknown;
41-
};
42-
43-
export type StagehandAgentStreamResult = {
44-
result?: unknown;
28+
usage?: StagehandAgentUsage;
4529
};
4630

4731
export type StagehandAgent = {

0 commit comments

Comments
 (0)