@browserbasehq/stagehand 3.0.7-alpha-5e337135056e0c4be59099b1919c2df741b27fea → 3.0.7-alpha-4d71162beb119635b69b17637564a2bbd0e373e7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +329 -3
- package/dist/index.js +1131 -321
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ import { GoogleVertexProviderSettings as GoogleVertexProviderSettings$1 } from '
|
|
|
6
6
|
import { LanguageModelV2 } from '@ai-sdk/provider';
|
|
7
7
|
import { ClientOptions as ClientOptions$1 } from 'openai';
|
|
8
8
|
import { Client, ClientOptions as ClientOptions$3 } from '@modelcontextprotocol/sdk/client/index.js';
|
|
9
|
-
import
|
|
9
|
+
import * as ai from 'ai';
|
|
10
|
+
import { ToolSet, ModelMessage, PrepareStepFunction, GenerateTextOnStepFinishCallback, StreamTextOnStepFinishCallback, StreamTextOnErrorCallback, StreamTextOnChunkCallback, StreamTextOnFinishCallback, StepResult, StreamTextResult, wrapLanguageModel, generateObject, generateText, streamText, streamObject, experimental_generateImage, embed, embedMany, experimental_transcribe, experimental_generateSpeech, InferUITools } from 'ai';
|
|
10
11
|
export { ModelMessage } from 'ai';
|
|
11
12
|
import { Page as Page$1 } from 'playwright-core';
|
|
12
13
|
export { Page as PlaywrightPage } from 'playwright-core';
|
|
@@ -1582,7 +1583,7 @@ declare class Page {
|
|
|
1582
1583
|
private keyDown;
|
|
1583
1584
|
/** Release a pressed key */
|
|
1584
1585
|
private keyUp;
|
|
1585
|
-
/** Normalize
|
|
1586
|
+
/** Normalize key names to match CDP expectations */
|
|
1586
1587
|
private normalizeModifierKey;
|
|
1587
1588
|
/**
|
|
1588
1589
|
* Get the map of named keys with their properties
|
|
@@ -1929,6 +1930,12 @@ type AgentProviderType = AgentType;
|
|
|
1929
1930
|
type AgentModelConfig<TModelName extends string = string> = {
|
|
1930
1931
|
modelName: TModelName;
|
|
1931
1932
|
} & Record<string, unknown>;
|
|
1933
|
+
/**
|
|
1934
|
+
* Agent tool mode determines which set of tools are available to the agent.
|
|
1935
|
+
* - 'dom': Uses DOM-based tools (act, fillForm) - better for structured page interactions
|
|
1936
|
+
* - 'hybrid': Uses coordinate-based tools (click, type, dragAndDrop, etc.) - better for visual/screenshot-based interactions
|
|
1937
|
+
*/
|
|
1938
|
+
type AgentToolMode = "dom" | "hybrid";
|
|
1932
1939
|
type AgentConfig = {
|
|
1933
1940
|
/**
|
|
1934
1941
|
* Custom system prompt to provide to the agent. Overrides the default system prompt.
|
|
@@ -1962,6 +1969,13 @@ type AgentConfig = {
|
|
|
1962
1969
|
* When false (default), execute() returns AgentResult after completion.
|
|
1963
1970
|
*/
|
|
1964
1971
|
stream?: boolean;
|
|
1972
|
+
/**
|
|
1973
|
+
* Tool mode for the agent. Determines which set of tools are available.
|
|
1974
|
+
* - 'dom' (default): Uses DOM-based tools (act, fillForm) for structured interactions
|
|
1975
|
+
* - 'hybrid': Uses coordinate-based tools (click, type, dragAndDrop, clickAndHold, fillFormVision)
|
|
1976
|
+
* for visual/screenshot-based interactions
|
|
1977
|
+
*/
|
|
1978
|
+
mode?: AgentToolMode;
|
|
1965
1979
|
};
|
|
1966
1980
|
/**
|
|
1967
1981
|
* Agent instance returned when stream: true is set in AgentConfig.
|
|
@@ -2197,6 +2211,10 @@ declare class V3 {
|
|
|
2197
2211
|
get browserbaseSessionID(): string | undefined;
|
|
2198
2212
|
get browserbaseSessionURL(): string | undefined;
|
|
2199
2213
|
get browserbaseDebugURL(): string | undefined;
|
|
2214
|
+
/**
|
|
2215
|
+
* Returns true if the browser is running on Browserbase.
|
|
2216
|
+
*/
|
|
2217
|
+
get isBrowserbase(): boolean;
|
|
2200
2218
|
private _onCdpClosed;
|
|
2201
2219
|
readonly experimental: boolean;
|
|
2202
2220
|
readonly logInferenceToFile: boolean;
|
|
@@ -2355,6 +2373,314 @@ declare class AgentProvider {
|
|
|
2355
2373
|
static getAgentProvider(modelName: string): AgentProviderType;
|
|
2356
2374
|
}
|
|
2357
2375
|
|
|
2376
|
+
declare const gotoTool: (v3: V3) => ai.Tool<{
|
|
2377
|
+
url: string;
|
|
2378
|
+
}, {
|
|
2379
|
+
success: boolean;
|
|
2380
|
+
url: string;
|
|
2381
|
+
error?: undefined;
|
|
2382
|
+
} | {
|
|
2383
|
+
success: boolean;
|
|
2384
|
+
error: any;
|
|
2385
|
+
url?: undefined;
|
|
2386
|
+
}>;
|
|
2387
|
+
|
|
2388
|
+
declare const actTool: (v3: V3, executionModel?: string) => ai.Tool<{
|
|
2389
|
+
action: string;
|
|
2390
|
+
}, {
|
|
2391
|
+
success: boolean;
|
|
2392
|
+
action: string;
|
|
2393
|
+
playwrightArguments: Action;
|
|
2394
|
+
error?: undefined;
|
|
2395
|
+
} | {
|
|
2396
|
+
success: boolean;
|
|
2397
|
+
error: any;
|
|
2398
|
+
action?: undefined;
|
|
2399
|
+
playwrightArguments?: undefined;
|
|
2400
|
+
}>;
|
|
2401
|
+
|
|
2402
|
+
declare const screenshotTool: (v3: V3) => ai.Tool<Record<string, never>, {
|
|
2403
|
+
base64: string;
|
|
2404
|
+
timestamp: number;
|
|
2405
|
+
pageUrl: string;
|
|
2406
|
+
}>;
|
|
2407
|
+
|
|
2408
|
+
declare const waitTool: (v3: V3) => ai.Tool<{
|
|
2409
|
+
timeMs: number;
|
|
2410
|
+
}, {
|
|
2411
|
+
success: boolean;
|
|
2412
|
+
waited: number;
|
|
2413
|
+
}>;
|
|
2414
|
+
|
|
2415
|
+
declare const navBackTool: (v3: V3) => ai.Tool<{
|
|
2416
|
+
reasoningText: string;
|
|
2417
|
+
}, {
|
|
2418
|
+
success: boolean;
|
|
2419
|
+
}>;
|
|
2420
|
+
|
|
2421
|
+
declare const closeTool: () => ai.Tool<{
|
|
2422
|
+
reasoning: string;
|
|
2423
|
+
taskComplete: boolean;
|
|
2424
|
+
}, {
|
|
2425
|
+
success: boolean;
|
|
2426
|
+
reasoning: string;
|
|
2427
|
+
taskComplete: boolean;
|
|
2428
|
+
}>;
|
|
2429
|
+
|
|
2430
|
+
declare const ariaTreeTool: (v3: V3) => ai.Tool<Record<string, never>, {
|
|
2431
|
+
content: string;
|
|
2432
|
+
pageUrl: string;
|
|
2433
|
+
}>;
|
|
2434
|
+
|
|
2435
|
+
declare const fillFormTool: (v3: V3, executionModel?: string) => ai.Tool<{
|
|
2436
|
+
fields: {
|
|
2437
|
+
action: string;
|
|
2438
|
+
value: string;
|
|
2439
|
+
}[];
|
|
2440
|
+
}, {
|
|
2441
|
+
success: boolean;
|
|
2442
|
+
actions: unknown[];
|
|
2443
|
+
playwrightArguments: Action[];
|
|
2444
|
+
}>;
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* Simple scroll tool for DOM mode (non-grounding models).
|
|
2448
|
+
* No coordinates - scrolls from viewport center.
|
|
2449
|
+
*/
|
|
2450
|
+
declare const scrollTool: (v3: V3) => ai.Tool<{
|
|
2451
|
+
direction: "up" | "down";
|
|
2452
|
+
percentage?: number;
|
|
2453
|
+
}, {
|
|
2454
|
+
success: boolean;
|
|
2455
|
+
message: string;
|
|
2456
|
+
scrolledPixels: number;
|
|
2457
|
+
}>;
|
|
2458
|
+
/**
|
|
2459
|
+
* Scroll tool for hybrid mode (grounding models).
|
|
2460
|
+
* Supports optional coordinates for scrolling within nested scrollable elements.
|
|
2461
|
+
*/
|
|
2462
|
+
declare const scrollVisionTool: (v3: V3, provider?: string) => ai.Tool<{
|
|
2463
|
+
direction: "up" | "down";
|
|
2464
|
+
coordinates?: number[];
|
|
2465
|
+
percentage?: number;
|
|
2466
|
+
}, {
|
|
2467
|
+
success: boolean;
|
|
2468
|
+
message: string;
|
|
2469
|
+
scrolledPixels: number;
|
|
2470
|
+
}>;
|
|
2471
|
+
|
|
2472
|
+
declare const extractTool: (v3: V3, executionModel?: string, logger?: (message: LogLine) => void) => ai.Tool<{
|
|
2473
|
+
instruction: string;
|
|
2474
|
+
schema?: string;
|
|
2475
|
+
}, {
|
|
2476
|
+
success: boolean;
|
|
2477
|
+
result: any;
|
|
2478
|
+
error?: undefined;
|
|
2479
|
+
} | {
|
|
2480
|
+
success: boolean;
|
|
2481
|
+
error: any;
|
|
2482
|
+
result?: undefined;
|
|
2483
|
+
}>;
|
|
2484
|
+
|
|
2485
|
+
declare const clickTool: (v3: V3, provider?: string) => ai.Tool<{
|
|
2486
|
+
describe: string;
|
|
2487
|
+
coordinates: number[];
|
|
2488
|
+
}, {
|
|
2489
|
+
success: boolean;
|
|
2490
|
+
describe: string;
|
|
2491
|
+
coordinates: number[];
|
|
2492
|
+
error?: undefined;
|
|
2493
|
+
} | {
|
|
2494
|
+
success: boolean;
|
|
2495
|
+
error: string;
|
|
2496
|
+
describe?: undefined;
|
|
2497
|
+
coordinates?: undefined;
|
|
2498
|
+
}>;
|
|
2499
|
+
|
|
2500
|
+
declare const typeTool: (v3: V3, provider?: string) => ai.Tool<{
|
|
2501
|
+
describe: string;
|
|
2502
|
+
text: string;
|
|
2503
|
+
coordinates: number[];
|
|
2504
|
+
}, {
|
|
2505
|
+
success: boolean;
|
|
2506
|
+
describe: string;
|
|
2507
|
+
text: string;
|
|
2508
|
+
error?: undefined;
|
|
2509
|
+
} | {
|
|
2510
|
+
success: boolean;
|
|
2511
|
+
error: string;
|
|
2512
|
+
describe?: undefined;
|
|
2513
|
+
text?: undefined;
|
|
2514
|
+
}>;
|
|
2515
|
+
|
|
2516
|
+
declare const dragAndDropTool: (v3: V3, provider?: string) => ai.Tool<{
|
|
2517
|
+
describe: string;
|
|
2518
|
+
startCoordinates: number[];
|
|
2519
|
+
endCoordinates: number[];
|
|
2520
|
+
}, {
|
|
2521
|
+
success: boolean;
|
|
2522
|
+
describe: string;
|
|
2523
|
+
error?: undefined;
|
|
2524
|
+
} | {
|
|
2525
|
+
success: boolean;
|
|
2526
|
+
error: string;
|
|
2527
|
+
describe?: undefined;
|
|
2528
|
+
}>;
|
|
2529
|
+
|
|
2530
|
+
declare const clickAndHoldTool: (v3: V3, provider?: string) => ai.Tool<{
|
|
2531
|
+
describe: string;
|
|
2532
|
+
duration: number;
|
|
2533
|
+
coordinates: number[];
|
|
2534
|
+
}, {
|
|
2535
|
+
success: boolean;
|
|
2536
|
+
describe: string;
|
|
2537
|
+
error?: undefined;
|
|
2538
|
+
} | {
|
|
2539
|
+
success: boolean;
|
|
2540
|
+
error: string;
|
|
2541
|
+
describe?: undefined;
|
|
2542
|
+
}>;
|
|
2543
|
+
|
|
2544
|
+
declare const keysTool: (v3: V3) => ai.Tool<{
|
|
2545
|
+
method: "type" | "press";
|
|
2546
|
+
value: string;
|
|
2547
|
+
repeat?: number;
|
|
2548
|
+
}, {
|
|
2549
|
+
success: boolean;
|
|
2550
|
+
method: "type";
|
|
2551
|
+
value: string;
|
|
2552
|
+
times: number;
|
|
2553
|
+
error?: undefined;
|
|
2554
|
+
} | {
|
|
2555
|
+
success: boolean;
|
|
2556
|
+
method: "press";
|
|
2557
|
+
value: string;
|
|
2558
|
+
times: number;
|
|
2559
|
+
error?: undefined;
|
|
2560
|
+
} | {
|
|
2561
|
+
success: boolean;
|
|
2562
|
+
error: string;
|
|
2563
|
+
method?: undefined;
|
|
2564
|
+
value?: undefined;
|
|
2565
|
+
times?: undefined;
|
|
2566
|
+
}>;
|
|
2567
|
+
|
|
2568
|
+
declare const fillFormVisionTool: (v3: V3, provider?: string) => ai.Tool<{
|
|
2569
|
+
fields: {
|
|
2570
|
+
action: string;
|
|
2571
|
+
value: string;
|
|
2572
|
+
coordinates: {
|
|
2573
|
+
x: number;
|
|
2574
|
+
y: number;
|
|
2575
|
+
};
|
|
2576
|
+
}[];
|
|
2577
|
+
}, {
|
|
2578
|
+
success: boolean;
|
|
2579
|
+
playwrightArguments: {
|
|
2580
|
+
coordinates: {
|
|
2581
|
+
x: number;
|
|
2582
|
+
y: number;
|
|
2583
|
+
};
|
|
2584
|
+
action: string;
|
|
2585
|
+
value: string;
|
|
2586
|
+
}[];
|
|
2587
|
+
error?: undefined;
|
|
2588
|
+
} | {
|
|
2589
|
+
success: boolean;
|
|
2590
|
+
error: string;
|
|
2591
|
+
playwrightArguments?: undefined;
|
|
2592
|
+
}>;
|
|
2593
|
+
|
|
2594
|
+
declare const thinkTool: () => ai.Tool<{
|
|
2595
|
+
reasoning: string;
|
|
2596
|
+
}, {
|
|
2597
|
+
acknowledged: boolean;
|
|
2598
|
+
message: string;
|
|
2599
|
+
}>;
|
|
2600
|
+
|
|
2601
|
+
interface BraveSearchResult {
|
|
2602
|
+
title: string;
|
|
2603
|
+
url: string;
|
|
2604
|
+
description?: string;
|
|
2605
|
+
}
|
|
2606
|
+
declare const searchTool: (v3: V3) => ai.Tool<{
|
|
2607
|
+
query: string;
|
|
2608
|
+
}, {
|
|
2609
|
+
timestamp: number;
|
|
2610
|
+
data?: {
|
|
2611
|
+
results: BraveSearchResult[];
|
|
2612
|
+
};
|
|
2613
|
+
error?: string;
|
|
2614
|
+
}>;
|
|
2615
|
+
|
|
2616
|
+
interface V3AgentToolOptions {
|
|
2617
|
+
executionModel?: string;
|
|
2618
|
+
logger?: (message: LogLine) => void;
|
|
2619
|
+
/**
|
|
2620
|
+
* Tool mode determines which set of tools are available.
|
|
2621
|
+
* - 'dom' (default): Uses DOM-based tools (act, fillForm) - removes coordinate-based tools
|
|
2622
|
+
* - 'hybrid': Uses coordinate-based tools (click, type, dragAndDrop, etc.) - removes fillForm
|
|
2623
|
+
*/
|
|
2624
|
+
mode?: AgentToolMode;
|
|
2625
|
+
/**
|
|
2626
|
+
* The model provider. Used for model-specific coordinate handling
|
|
2627
|
+
*/
|
|
2628
|
+
provider?: string;
|
|
2629
|
+
}
|
|
2630
|
+
declare function createAgentTools(v3: V3, options?: V3AgentToolOptions): ToolSet;
|
|
2631
|
+
type AgentTools = ReturnType<typeof createAgentTools>;
|
|
2632
|
+
/**
|
|
2633
|
+
* Type map of all agent tools for strong typing of tool calls and results.
|
|
2634
|
+
* Note: `search` is optional as it's only available when BRAVE_API_KEY is configured.
|
|
2635
|
+
*/
|
|
2636
|
+
type AgentToolTypesMap = {
|
|
2637
|
+
act: ReturnType<typeof actTool>;
|
|
2638
|
+
ariaTree: ReturnType<typeof ariaTreeTool>;
|
|
2639
|
+
click: ReturnType<typeof clickTool>;
|
|
2640
|
+
clickAndHold: ReturnType<typeof clickAndHoldTool>;
|
|
2641
|
+
close: ReturnType<typeof closeTool>;
|
|
2642
|
+
dragAndDrop: ReturnType<typeof dragAndDropTool>;
|
|
2643
|
+
extract: ReturnType<typeof extractTool>;
|
|
2644
|
+
fillForm: ReturnType<typeof fillFormTool>;
|
|
2645
|
+
fillFormVision: ReturnType<typeof fillFormVisionTool>;
|
|
2646
|
+
goto: ReturnType<typeof gotoTool>;
|
|
2647
|
+
keys: ReturnType<typeof keysTool>;
|
|
2648
|
+
navback: ReturnType<typeof navBackTool>;
|
|
2649
|
+
screenshot: ReturnType<typeof screenshotTool>;
|
|
2650
|
+
scroll: ReturnType<typeof scrollTool> | ReturnType<typeof scrollVisionTool>;
|
|
2651
|
+
search?: ReturnType<typeof searchTool>;
|
|
2652
|
+
think: ReturnType<typeof thinkTool>;
|
|
2653
|
+
type: ReturnType<typeof typeTool>;
|
|
2654
|
+
wait: ReturnType<typeof waitTool>;
|
|
2655
|
+
};
|
|
2656
|
+
/**
|
|
2657
|
+
* Inferred UI tools type for type-safe tool inputs and outputs.
|
|
2658
|
+
* Use with UIMessage for full type safety in UI contexts.
|
|
2659
|
+
*/
|
|
2660
|
+
type AgentUITools = InferUITools<AgentToolTypesMap>;
|
|
2661
|
+
/**
|
|
2662
|
+
* Union type for all possible agent tool calls.
|
|
2663
|
+
* Provides type-safe access to tool call arguments.
|
|
2664
|
+
*/
|
|
2665
|
+
type AgentToolCall = {
|
|
2666
|
+
[K in keyof AgentToolTypesMap]: {
|
|
2667
|
+
toolName: K;
|
|
2668
|
+
toolCallId: string;
|
|
2669
|
+
args: AgentUITools[K]["input"];
|
|
2670
|
+
};
|
|
2671
|
+
}[keyof AgentToolTypesMap];
|
|
2672
|
+
/**
|
|
2673
|
+
* Union type for all possible agent tool results.
|
|
2674
|
+
* Provides type-safe access to tool result values.
|
|
2675
|
+
*/
|
|
2676
|
+
type AgentToolResult = {
|
|
2677
|
+
[K in keyof AgentToolTypesMap]: {
|
|
2678
|
+
toolName: K;
|
|
2679
|
+
toolCallId: string;
|
|
2680
|
+
result: AgentUITools[K]["output"];
|
|
2681
|
+
};
|
|
2682
|
+
}[keyof AgentToolTypesMap];
|
|
2683
|
+
|
|
2358
2684
|
declare function validateZodSchema(schema: StagehandZodSchema, data: unknown): boolean;
|
|
2359
2685
|
/**
|
|
2360
2686
|
* Detects if the code is running in the Bun runtime environment.
|
|
@@ -2446,4 +2772,4 @@ declare class V3Evaluator {
|
|
|
2446
2772
|
private _evaluateWithMultipleScreenshots;
|
|
2447
2773
|
}
|
|
2448
2774
|
|
|
2449
|
-
export { type AISDKCustomProvider, type AISDKProvider, AISdkClient, AVAILABLE_CUA_MODELS, type ActOptions, type ActResult, ActTimeoutError, type Action, type ActionExecutionResult, AgentAbortError, type AgentAction, type AgentCallbacks, type AgentConfig, type AgentContext, type AgentExecuteCallbacks, type AgentExecuteOptions, type AgentExecuteOptionsBase, type AgentExecutionOptions, type AgentHandlerOptions, type AgentInstance, type AgentModelConfig, AgentProvider, type AgentProviderType, type AgentResult, AgentScreenshotProviderError, type AgentState, type AgentStreamCallbacks, type AgentStreamExecuteOptions, type AgentStreamResult, type AgentType, AnnotatedScreenshotText, type AnthropicClientOptions, type AnthropicContentBlock, type AnthropicJsonSchemaObject, type AnthropicMessage, type AnthropicTextBlock, type AnthropicToolResult, type AnyPage, type AvailableCuaModel, type AvailableModel, BrowserbaseSessionNotFoundError, CaptchaTimeoutError, type ChatCompletionOptions, type ChatMessage, type ChatMessageContent, type ChatMessageImageContent, type ChatMessageTextContent, type ClientOptions, type ComputerCallItem, ConnectionTimeoutError, type ConsoleListener, ConsoleMessage, ContentFrameNotFoundError, type CreateChatCompletionOptions, CreateChatCompletionResponseError, CuaModelRequiredError, ElementNotVisibleError, ExperimentalApiConflictError, ExperimentalNotConfiguredError, type ExtractOptions, type ExtractResult, ExtractTimeoutError, type FunctionCallItem, type GoogleServiceAccountCredentials, type GoogleVertexProviderSettings, HandlerNotInitializedError, type HistoryEntry, type InferStagehandSchema, InvalidAISDKModelFormatError, type JsonSchema, type JsonSchemaDocument, type JsonSchemaProperty, LLMClient, type LLMParsedResponse, type LLMResponse, LLMResponseError, type LLMTool, type LLMUsage, LOG_LEVEL_NAMES, type LoadState, type LocalBrowserLaunchOptions, type LogLevel, type LogLine, type Logger, MCPConnectionError, MissingEnvironmentVariableError, MissingLLMConfigurationError, type ModelConfiguration, type ModelProvider, type NonStreamingAgentInstance, type ObserveOptions, ObserveTimeoutError, type OpenAIClientOptions, Page, PageNotFoundError, Response$1 as Response, ResponseBodyError, type ResponseInputItem, type ResponseItem, ResponseParseError, V3 as Stagehand, StagehandAPIError, StagehandAPIUnauthorizedError, StagehandClickError, StagehandClosedError, StagehandDefaultError, StagehandDomProcessError, StagehandElementNotFoundError, StagehandEnvironmentError, StagehandError, StagehandEvalError, StagehandHttpError, StagehandIframeError, StagehandInitError, StagehandInvalidArgumentError, type StagehandMetrics, StagehandMissingArgumentError, StagehandNotInitializedError, StagehandResponseBodyError, StagehandResponseParseError, StagehandServerError, StagehandShadowRootMissingError, StagehandShadowSegmentEmptyError, StagehandShadowSegmentNotFoundError, type StagehandZodObject, type StagehandZodSchema, type StreamingAgentInstance, StreamingCallbacksInNonStreamingModeError, TimeoutError, type ToolUseItem, UnsupportedAISDKModelProviderError, UnsupportedModelError, UnsupportedModelProviderError, V3, type V3Env, V3Evaluator, V3FunctionName, type V3Options, XPathResolutionError, ZodSchemaValidationError, connectToMCPServer, defaultExtractSchema, getZodType, injectUrls, isRunningInBun, isZod3Schema, isZod4Schema, jsonSchemaToZod, loadApiKeyFromEnv, modelToAgentProviderMap, pageTextSchema, providerEnvVarMap, toGeminiSchema, toJsonSchema, transformSchema, trimTrailingTextNode, validateZodSchema };
|
|
2775
|
+
export { type AISDKCustomProvider, type AISDKProvider, AISdkClient, AVAILABLE_CUA_MODELS, type ActOptions, type ActResult, ActTimeoutError, type Action, type ActionExecutionResult, AgentAbortError, type AgentAction, type AgentCallbacks, type AgentConfig, type AgentContext, type AgentExecuteCallbacks, type AgentExecuteOptions, type AgentExecuteOptionsBase, type AgentExecutionOptions, type AgentHandlerOptions, type AgentInstance, type AgentModelConfig, AgentProvider, type AgentProviderType, type AgentResult, AgentScreenshotProviderError, type AgentState, type AgentStreamCallbacks, type AgentStreamExecuteOptions, type AgentStreamResult, type AgentToolCall, type AgentToolMode, type AgentToolResult, type AgentToolTypesMap, type AgentTools, type AgentType, type AgentUITools, AnnotatedScreenshotText, type AnthropicClientOptions, type AnthropicContentBlock, type AnthropicJsonSchemaObject, type AnthropicMessage, type AnthropicTextBlock, type AnthropicToolResult, type AnyPage, type AvailableCuaModel, type AvailableModel, BrowserbaseSessionNotFoundError, CaptchaTimeoutError, type ChatCompletionOptions, type ChatMessage, type ChatMessageContent, type ChatMessageImageContent, type ChatMessageTextContent, type ClientOptions, type ComputerCallItem, ConnectionTimeoutError, type ConsoleListener, ConsoleMessage, ContentFrameNotFoundError, type CreateChatCompletionOptions, CreateChatCompletionResponseError, CuaModelRequiredError, ElementNotVisibleError, ExperimentalApiConflictError, ExperimentalNotConfiguredError, type ExtractOptions, type ExtractResult, ExtractTimeoutError, type FunctionCallItem, type GoogleServiceAccountCredentials, type GoogleVertexProviderSettings, HandlerNotInitializedError, type HistoryEntry, type InferStagehandSchema, InvalidAISDKModelFormatError, type JsonSchema, type JsonSchemaDocument, type JsonSchemaProperty, LLMClient, type LLMParsedResponse, type LLMResponse, LLMResponseError, type LLMTool, type LLMUsage, LOG_LEVEL_NAMES, type LoadState, type LocalBrowserLaunchOptions, type LogLevel, type LogLine, type Logger, MCPConnectionError, MissingEnvironmentVariableError, MissingLLMConfigurationError, type ModelConfiguration, type ModelProvider, type NonStreamingAgentInstance, type ObserveOptions, ObserveTimeoutError, type OpenAIClientOptions, Page, PageNotFoundError, Response$1 as Response, ResponseBodyError, type ResponseInputItem, type ResponseItem, ResponseParseError, V3 as Stagehand, StagehandAPIError, StagehandAPIUnauthorizedError, StagehandClickError, StagehandClosedError, StagehandDefaultError, StagehandDomProcessError, StagehandElementNotFoundError, StagehandEnvironmentError, StagehandError, StagehandEvalError, StagehandHttpError, StagehandIframeError, StagehandInitError, StagehandInvalidArgumentError, type StagehandMetrics, StagehandMissingArgumentError, StagehandNotInitializedError, StagehandResponseBodyError, StagehandResponseParseError, StagehandServerError, StagehandShadowRootMissingError, StagehandShadowSegmentEmptyError, StagehandShadowSegmentNotFoundError, type StagehandZodObject, type StagehandZodSchema, type StreamingAgentInstance, StreamingCallbacksInNonStreamingModeError, TimeoutError, type ToolUseItem, UnsupportedAISDKModelProviderError, UnsupportedModelError, UnsupportedModelProviderError, V3, type V3Env, V3Evaluator, V3FunctionName, type V3Options, XPathResolutionError, ZodSchemaValidationError, connectToMCPServer, defaultExtractSchema, getZodType, injectUrls, isRunningInBun, isZod3Schema, isZod4Schema, jsonSchemaToZod, loadApiKeyFromEnv, modelToAgentProviderMap, pageTextSchema, providerEnvVarMap, toGeminiSchema, toJsonSchema, transformSchema, trimTrailingTextNode, validateZodSchema };
|