@browserbasehq/stagehand 2.5.3-alpha-4994eabfa8016347ec001b40ceadb0c905403470 → 4.0.0-alpha-49bc5b68e4fbeb28a120b301b51c31a36db7d922

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.
Files changed (286) hide show
  1. package/dist/index.d.ts +1367 -751
  2. package/dist/index.js +37087 -22062
  3. package/package.json +54 -78
  4. package/README.md +0 -165
  5. package/dist/evals/args.d.ts +0 -15
  6. package/dist/evals/cli.d.ts +0 -2
  7. package/dist/evals/core/summary.d.ts +0 -2
  8. package/dist/evals/datasets/osworld/adapter.d.ts +0 -22
  9. package/dist/evals/datasets/osworld/index.d.ts +0 -9
  10. package/dist/evals/datasets/osworld/types.d.ts +0 -54
  11. package/dist/evals/deterministic/bb.playwright.config.d.ts +0 -5
  12. package/dist/evals/deterministic/e2e.playwright.config.d.ts +0 -5
  13. package/dist/evals/deterministic/local.playwright.config.d.ts +0 -5
  14. package/dist/evals/deterministic/stagehand.config.d.ts +0 -3
  15. package/dist/evals/deterministic/tests/BrowserContext/addInitScript.test.d.ts +0 -1
  16. package/dist/evals/deterministic/tests/BrowserContext/cookies.test.d.ts +0 -1
  17. package/dist/evals/deterministic/tests/BrowserContext/multiPage.test.d.ts +0 -1
  18. package/dist/evals/deterministic/tests/BrowserContext/page.test.d.ts +0 -1
  19. package/dist/evals/deterministic/tests/BrowserContext/routing.test.d.ts +0 -1
  20. package/dist/evals/deterministic/tests/Errors/apiKeyError.test.d.ts +0 -1
  21. package/dist/evals/deterministic/tests/browserbase/contexts.test.d.ts +0 -1
  22. package/dist/evals/deterministic/tests/browserbase/downloads.test.d.ts +0 -1
  23. package/dist/evals/deterministic/tests/browserbase/sessions.test.d.ts +0 -1
  24. package/dist/evals/deterministic/tests/browserbase/uploads.test.d.ts +0 -1
  25. package/dist/evals/deterministic/tests/local/create.test.d.ts +0 -1
  26. package/dist/evals/deterministic/tests/local/downloads.test.d.ts +0 -1
  27. package/dist/evals/deterministic/tests/page/addInitScript.test.d.ts +0 -1
  28. package/dist/evals/deterministic/tests/page/addRemoveLocatorHandler.test.d.ts +0 -1
  29. package/dist/evals/deterministic/tests/page/addTags.test.d.ts +0 -1
  30. package/dist/evals/deterministic/tests/page/bringToFront.test.d.ts +0 -1
  31. package/dist/evals/deterministic/tests/page/content.test.d.ts +0 -1
  32. package/dist/evals/deterministic/tests/page/evaluate.test.d.ts +0 -1
  33. package/dist/evals/deterministic/tests/page/expose.test.d.ts +0 -1
  34. package/dist/evals/deterministic/tests/page/frames.test.d.ts +0 -1
  35. package/dist/evals/deterministic/tests/page/getBy.test.d.ts +0 -1
  36. package/dist/evals/deterministic/tests/page/livePageProxy.test.d.ts +0 -1
  37. package/dist/evals/deterministic/tests/page/navigation.test.d.ts +0 -1
  38. package/dist/evals/deterministic/tests/page/on.test.d.ts +0 -1
  39. package/dist/evals/deterministic/tests/page/pageContext.test.d.ts +0 -1
  40. package/dist/evals/deterministic/tests/page/reload.test.d.ts +0 -1
  41. package/dist/evals/deterministic/tests/page/waitFor.test.d.ts +0 -1
  42. package/dist/evals/env.d.ts +0 -13
  43. package/dist/evals/evaluator.d.ts +0 -29
  44. package/dist/evals/index.eval.d.ts +0 -1
  45. package/dist/evals/initStagehand.d.ts +0 -37
  46. package/dist/evals/llm_clients/hn_aisdk.d.ts +0 -2
  47. package/dist/evals/llm_clients/hn_customOpenAI.d.ts +0 -2
  48. package/dist/evals/llm_clients/hn_langchain.d.ts +0 -2
  49. package/dist/evals/logger.d.ts +0 -50
  50. package/dist/evals/scoring.d.ts +0 -25
  51. package/dist/evals/suites/gaia.d.ts +0 -2
  52. package/dist/evals/suites/onlineMind2Web.d.ts +0 -2
  53. package/dist/evals/suites/osworld.d.ts +0 -2
  54. package/dist/evals/suites/webbench.d.ts +0 -2
  55. package/dist/evals/suites/webvoyager.d.ts +0 -2
  56. package/dist/evals/taskConfig.d.ts +0 -33
  57. package/dist/evals/tasks/agent/all_recipes.d.ts +0 -2
  58. package/dist/evals/tasks/agent/apple_trade_in.d.ts +0 -2
  59. package/dist/evals/tasks/agent/apple_tv.d.ts +0 -2
  60. package/dist/evals/tasks/agent/arxiv_gpt_report.d.ts +0 -2
  61. package/dist/evals/tasks/agent/gaia.d.ts +0 -9
  62. package/dist/evals/tasks/agent/github.d.ts +0 -2
  63. package/dist/evals/tasks/agent/github_react_version.d.ts +0 -2
  64. package/dist/evals/tasks/agent/google_flights.d.ts +0 -2
  65. package/dist/evals/tasks/agent/google_maps.d.ts +0 -2
  66. package/dist/evals/tasks/agent/google_maps_2.d.ts +0 -2
  67. package/dist/evals/tasks/agent/google_maps_3.d.ts +0 -2
  68. package/dist/evals/tasks/agent/google_shopping.d.ts +0 -2
  69. package/dist/evals/tasks/agent/hotel_booking.d.ts +0 -2
  70. package/dist/evals/tasks/agent/hugging_face.d.ts +0 -2
  71. package/dist/evals/tasks/agent/iframe_form.d.ts +0 -2
  72. package/dist/evals/tasks/agent/iframe_form_multiple.d.ts +0 -2
  73. package/dist/evals/tasks/agent/kayak.d.ts +0 -2
  74. package/dist/evals/tasks/agent/kith.d.ts +0 -2
  75. package/dist/evals/tasks/agent/nba_trades.d.ts +0 -2
  76. package/dist/evals/tasks/agent/onlineMind2Web.d.ts +0 -2
  77. package/dist/evals/tasks/agent/osworld.d.ts +0 -2
  78. package/dist/evals/tasks/agent/sf_library_card.d.ts +0 -2
  79. package/dist/evals/tasks/agent/sf_library_card_multiple.d.ts +0 -2
  80. package/dist/evals/tasks/agent/sign_in.d.ts +0 -2
  81. package/dist/evals/tasks/agent/steam_games.d.ts +0 -2
  82. package/dist/evals/tasks/agent/trivago.d.ts +0 -2
  83. package/dist/evals/tasks/agent/ubereats.d.ts +0 -2
  84. package/dist/evals/tasks/agent/webbench.d.ts +0 -2
  85. package/dist/evals/tasks/agent/webvoyager.d.ts +0 -2
  86. package/dist/evals/tasks/agent/youtube.d.ts +0 -2
  87. package/dist/evals/tasks/allrecipes.d.ts +0 -2
  88. package/dist/evals/tasks/amazon_add_to_cart.d.ts +0 -2
  89. package/dist/evals/tasks/apple.d.ts +0 -2
  90. package/dist/evals/tasks/arxiv.d.ts +0 -2
  91. package/dist/evals/tasks/bidnet.d.ts +0 -2
  92. package/dist/evals/tasks/checkboxes.d.ts +0 -2
  93. package/dist/evals/tasks/combination_sauce.d.ts +0 -2
  94. package/dist/evals/tasks/costar.d.ts +0 -2
  95. package/dist/evals/tasks/csr_in_oopif.d.ts +0 -2
  96. package/dist/evals/tasks/csr_in_spif.d.ts +0 -2
  97. package/dist/evals/tasks/custom_dropdown.d.ts +0 -2
  98. package/dist/evals/tasks/dropdown.d.ts +0 -2
  99. package/dist/evals/tasks/expect_act_timeout.d.ts +0 -2
  100. package/dist/evals/tasks/extract_aigrant_companies.d.ts +0 -2
  101. package/dist/evals/tasks/extract_aigrant_targeted.d.ts +0 -2
  102. package/dist/evals/tasks/extract_aigrant_targeted_2.d.ts +0 -2
  103. package/dist/evals/tasks/extract_apartments.d.ts +0 -2
  104. package/dist/evals/tasks/extract_area_codes.d.ts +0 -2
  105. package/dist/evals/tasks/extract_baptist_health.d.ts +0 -2
  106. package/dist/evals/tasks/extract_capacitor_info.d.ts +0 -2
  107. package/dist/evals/tasks/extract_collaborators.d.ts +0 -2
  108. package/dist/evals/tasks/extract_csa.d.ts +0 -2
  109. package/dist/evals/tasks/extract_geniusee.d.ts +0 -2
  110. package/dist/evals/tasks/extract_geniusee_2.d.ts +0 -2
  111. package/dist/evals/tasks/extract_github_commits.d.ts +0 -2
  112. package/dist/evals/tasks/extract_github_stars.d.ts +0 -2
  113. package/dist/evals/tasks/extract_hamilton_weather.d.ts +0 -2
  114. package/dist/evals/tasks/extract_jfk_links.d.ts +0 -2
  115. package/dist/evals/tasks/extract_jstor_news.d.ts +0 -2
  116. package/dist/evals/tasks/extract_memorial_healthcare.d.ts +0 -2
  117. package/dist/evals/tasks/extract_nhl_stats.d.ts +0 -2
  118. package/dist/evals/tasks/extract_partners.d.ts +0 -2
  119. package/dist/evals/tasks/extract_press_releases.d.ts +0 -2
  120. package/dist/evals/tasks/extract_professional_info.d.ts +0 -2
  121. package/dist/evals/tasks/extract_public_notices.d.ts +0 -2
  122. package/dist/evals/tasks/extract_recipe.d.ts +0 -2
  123. package/dist/evals/tasks/extract_regulations_table.d.ts +0 -2
  124. package/dist/evals/tasks/extract_repo_name.d.ts +0 -2
  125. package/dist/evals/tasks/extract_resistor_info.d.ts +0 -2
  126. package/dist/evals/tasks/extract_rockauto.d.ts +0 -2
  127. package/dist/evals/tasks/extract_single_link.d.ts +0 -2
  128. package/dist/evals/tasks/extract_snowshoeing_destinations.d.ts +0 -2
  129. package/dist/evals/tasks/extract_staff_members.d.ts +0 -2
  130. package/dist/evals/tasks/extract_zillow.d.ts +0 -2
  131. package/dist/evals/tasks/google_flights.d.ts +0 -11
  132. package/dist/evals/tasks/heal_custom_dropdown.d.ts +0 -2
  133. package/dist/evals/tasks/heal_scroll_50.d.ts +0 -2
  134. package/dist/evals/tasks/heal_simple_google_search.d.ts +0 -2
  135. package/dist/evals/tasks/hidden_input_dropdown.d.ts +0 -2
  136. package/dist/evals/tasks/history.d.ts +0 -2
  137. package/dist/evals/tasks/homedepot.d.ts +0 -2
  138. package/dist/evals/tasks/iframe_form_filling.d.ts +0 -2
  139. package/dist/evals/tasks/iframe_hn.d.ts +0 -2
  140. package/dist/evals/tasks/iframe_same_proc.d.ts +0 -2
  141. package/dist/evals/tasks/iframe_scroll.d.ts +0 -2
  142. package/dist/evals/tasks/iframes_nested.d.ts +0 -2
  143. package/dist/evals/tasks/imdb_movie_details.d.ts +0 -2
  144. package/dist/evals/tasks/instructions.d.ts +0 -2
  145. package/dist/evals/tasks/ionwave.d.ts +0 -2
  146. package/dist/evals/tasks/ionwave_observe.d.ts +0 -2
  147. package/dist/evals/tasks/login.d.ts +0 -2
  148. package/dist/evals/tasks/multi_tab.d.ts +0 -2
  149. package/dist/evals/tasks/namespace_xpath.d.ts +0 -2
  150. package/dist/evals/tasks/nested_iframes_2.d.ts +0 -2
  151. package/dist/evals/tasks/nextChunk.d.ts +0 -2
  152. package/dist/evals/tasks/no_js_click.d.ts +0 -2
  153. package/dist/evals/tasks/nonsense_action.d.ts +0 -2
  154. package/dist/evals/tasks/observe_amazon_add_to_cart.d.ts +0 -2
  155. package/dist/evals/tasks/observe_github.d.ts +0 -2
  156. package/dist/evals/tasks/observe_iframes1.d.ts +0 -2
  157. package/dist/evals/tasks/observe_iframes2.d.ts +0 -2
  158. package/dist/evals/tasks/observe_simple_google_search.d.ts +0 -2
  159. package/dist/evals/tasks/observe_taxes.d.ts +0 -2
  160. package/dist/evals/tasks/observe_vantechjournal.d.ts +0 -2
  161. package/dist/evals/tasks/observe_yc_startup.d.ts +0 -2
  162. package/dist/evals/tasks/oopif_in_csr.d.ts +0 -2
  163. package/dist/evals/tasks/oopif_in_osr.d.ts +0 -2
  164. package/dist/evals/tasks/os_dropdown.d.ts +0 -2
  165. package/dist/evals/tasks/osr_in_oopif.d.ts +0 -2
  166. package/dist/evals/tasks/osr_in_spif.d.ts +0 -2
  167. package/dist/evals/tasks/panamcs.d.ts +0 -2
  168. package/dist/evals/tasks/peeler_complex.d.ts +0 -2
  169. package/dist/evals/tasks/peeler_simple.d.ts +0 -2
  170. package/dist/evals/tasks/prevChunk.d.ts +0 -2
  171. package/dist/evals/tasks/radio_btn.d.ts +0 -2
  172. package/dist/evals/tasks/rakuten_jp.d.ts +0 -2
  173. package/dist/evals/tasks/sciquest.d.ts +0 -2
  174. package/dist/evals/tasks/screenshot_cdp_toggle.d.ts +0 -9
  175. package/dist/evals/tasks/scroll_50.d.ts +0 -2
  176. package/dist/evals/tasks/scroll_75.d.ts +0 -2
  177. package/dist/evals/tasks/shadow_dom.d.ts +0 -2
  178. package/dist/evals/tasks/simple_google_search.d.ts +0 -2
  179. package/dist/evals/tasks/spif_in_csr.d.ts +0 -2
  180. package/dist/evals/tasks/spif_in_osr.d.ts +0 -2
  181. package/dist/evals/tasks/stock_x.d.ts +0 -2
  182. package/dist/evals/tasks/tab_handling.d.ts +0 -2
  183. package/dist/evals/tasks/ted_talk.d.ts +0 -2
  184. package/dist/evals/tasks/vanta_h.d.ts +0 -2
  185. package/dist/evals/tasks/vantechjournal.d.ts +0 -2
  186. package/dist/evals/tasks/wichita.d.ts +0 -2
  187. package/dist/evals/tasks/wikipedia.d.ts +0 -2
  188. package/dist/evals/utils/ScreenshotCollector.d.ts +0 -34
  189. package/dist/evals/utils/imageUtils.d.ts +0 -1
  190. package/dist/evals/utils.d.ts +0 -61
  191. package/dist/examples/2048.d.ts +0 -1
  192. package/dist/examples/actionable_observe_example.d.ts +0 -14
  193. package/dist/examples/cua-example.d.ts +0 -1
  194. package/dist/examples/custom_client_aisdk.d.ts +0 -1
  195. package/dist/examples/custom_client_langchain.d.ts +0 -1
  196. package/dist/examples/custom_client_openai.d.ts +0 -1
  197. package/dist/examples/example.d.ts +0 -1
  198. package/dist/examples/external_clients/aisdk.d.ts +0 -20
  199. package/dist/examples/external_clients/customOpenAI.d.ts +0 -18
  200. package/dist/examples/external_clients/langchain.d.ts +0 -9
  201. package/dist/examples/form_filling_sensible.d.ts +0 -1
  202. package/dist/examples/google_enter.d.ts +0 -6
  203. package/dist/examples/instructions.d.ts +0 -1
  204. package/dist/examples/integrations/exa.d.ts +0 -1
  205. package/dist/examples/integrations/supabase.d.ts +0 -1
  206. package/dist/examples/operator-example.d.ts +0 -8
  207. package/dist/examples/parameterizeApiKey.d.ts +0 -1
  208. package/dist/examples/popup.d.ts +0 -6
  209. package/dist/examples/wordle.d.ts +0 -1
  210. package/dist/lib/StagehandContext.d.ts +0 -25
  211. package/dist/lib/StagehandPage.d.ts +0 -103
  212. package/dist/lib/a11y/utils.d.ts +0 -144
  213. package/dist/lib/agent/AgentClient.d.ts +0 -20
  214. package/dist/lib/agent/AgentProvider.d.ts +0 -19
  215. package/dist/lib/agent/AnthropicCUAClient.d.ts +0 -56
  216. package/dist/lib/agent/GoogleCUAClient.d.ts +0 -63
  217. package/dist/lib/agent/OpenAICUAClient.d.ts +0 -65
  218. package/dist/lib/agent/StagehandAgent.d.ts +0 -15
  219. package/dist/lib/agent/tools/act.d.ts +0 -59
  220. package/dist/lib/agent/tools/ariaTree.d.ts +0 -11
  221. package/dist/lib/agent/tools/close.d.ts +0 -22
  222. package/dist/lib/agent/tools/extract.d.ts +0 -38
  223. package/dist/lib/agent/tools/fillform.d.ts +0 -37
  224. package/dist/lib/agent/tools/goto.d.ts +0 -29
  225. package/dist/lib/agent/tools/index.d.ts +0 -257
  226. package/dist/lib/agent/tools/navback.d.ts +0 -17
  227. package/dist/lib/agent/tools/screenshot.d.ts +0 -13
  228. package/dist/lib/agent/tools/scroll.d.ts +0 -23
  229. package/dist/lib/agent/tools/wait.d.ts +0 -18
  230. package/dist/lib/agent/utils/cuaKeyMapping.d.ts +0 -10
  231. package/dist/lib/agent/utils/imageCompression.d.ts +0 -53
  232. package/dist/lib/agent/utils/messageProcessing.d.ts +0 -13
  233. package/dist/lib/api.d.ts +0 -23
  234. package/dist/lib/browserbaseDefaults.d.ts +0 -9
  235. package/dist/lib/cache/ActionCache.d.ts +0 -62
  236. package/dist/lib/cache/BaseCache.d.ts +0 -66
  237. package/dist/lib/cache/LLMCache.d.ts +0 -22
  238. package/dist/lib/cache.d.ts +0 -29
  239. package/dist/lib/dom/build/scriptContent.d.ts +0 -1
  240. package/dist/lib/dom/elementCheckUtils.d.ts +0 -2
  241. package/dist/lib/dom/genDomScripts.d.ts +0 -1
  242. package/dist/lib/dom/index.d.ts +0 -2
  243. package/dist/lib/dom/process.d.ts +0 -17
  244. package/dist/lib/dom/utils.d.ts +0 -7
  245. package/dist/lib/dom/xpathUtils.d.ts +0 -14
  246. package/dist/lib/handlers/actHandler.d.ts +0 -33
  247. package/dist/lib/handlers/cuaAgentHandler.d.ts +0 -58
  248. package/dist/lib/handlers/extractHandler.d.ts +0 -54
  249. package/dist/lib/handlers/handlerUtils/actHandlerUtils.d.ts +0 -21
  250. package/dist/lib/handlers/observeHandler.d.ts +0 -40
  251. package/dist/lib/handlers/stagehandAgentHandler.d.ts +0 -27
  252. package/dist/lib/index.d.ts +0 -94
  253. package/dist/lib/inference.d.ts +0 -61
  254. package/dist/lib/inferenceLogUtils.d.ts +0 -12
  255. package/dist/lib/llm/AnthropicClient.d.ts +0 -21
  256. package/dist/lib/llm/CerebrasClient.d.ts +0 -22
  257. package/dist/lib/llm/GoogleClient.d.ts +0 -24
  258. package/dist/lib/llm/GroqClient.d.ts +0 -22
  259. package/dist/lib/llm/LLMClient.d.ts +0 -99
  260. package/dist/lib/llm/LLMProvider.d.ts +0 -13
  261. package/dist/lib/llm/OpenAIClient.d.ts +0 -20
  262. package/dist/lib/llm/aisdk.d.ts +0 -20
  263. package/dist/lib/logger.d.ts +0 -54
  264. package/dist/lib/mcp/connection.d.ts +0 -11
  265. package/dist/lib/mcp/utils.d.ts +0 -3
  266. package/dist/lib/prompt.d.ts +0 -14
  267. package/dist/lib/utils.d.ts +0 -68
  268. package/dist/lib/version.d.ts +0 -5
  269. package/dist/scripts/gen-version.d.ts +0 -1
  270. package/dist/scripts/run-evals.d.ts +0 -1
  271. package/dist/stagehand.config.d.ts +0 -3
  272. package/dist/types/act.d.ts +0 -50
  273. package/dist/types/agent.d.ts +0 -144
  274. package/dist/types/api.d.ts +0 -40
  275. package/dist/types/browser.d.ts +0 -10
  276. package/dist/types/context.d.ts +0 -117
  277. package/dist/types/evals.d.ts +0 -95
  278. package/dist/types/evaluator.d.ts +0 -40
  279. package/dist/types/llm.d.ts +0 -11
  280. package/dist/types/log.d.ts +0 -23
  281. package/dist/types/model.d.ts +0 -17
  282. package/dist/types/page.d.ts +0 -38
  283. package/dist/types/playwright.d.ts +0 -12
  284. package/dist/types/stagehand.d.ts +0 -330
  285. package/dist/types/stagehandApiErrors.d.ts +0 -18
  286. package/dist/types/stagehandErrors.d.ts +0 -104
@@ -1,17 +0,0 @@
1
- /**
2
- * Finds and returns a list of scrollable elements on the page,
3
- * ordered from the element with the largest scrollHeight to the smallest.
4
- *
5
- * @param topN Optional maximum number of scrollable elements to return.
6
- * If not provided, all found scrollable elements are returned.
7
- * @returns An array of HTMLElements sorted by descending scrollHeight.
8
- */
9
- export declare function getScrollableElements(topN?: number): HTMLElement[];
10
- /**
11
- * Calls getScrollableElements, then for each element calls generateXPaths,
12
- * and returns the first XPath for each.
13
- *
14
- * @param topN (optional) integer limit on how many scrollable elements to process
15
- * @returns string[] list of XPaths (1 for each scrollable element)
16
- */
17
- export declare function getScrollableElementXpaths(topN?: number): Promise<string[]>;
@@ -1,7 +0,0 @@
1
- /**
2
- * Tests if the element actually responds to .scrollTo(...)
3
- * and that scrollTop changes as expected.
4
- */
5
- export declare function canElementScroll(elem: HTMLElement): boolean;
6
- export declare function getNodeFromXpath(xpath: string): Node;
7
- export declare function waitForElementScrollEnd(element: HTMLElement, idleMs?: number): Promise<void>;
@@ -1,14 +0,0 @@
1
- /**
2
- * Escapes a string for use in an XPath expression.
3
- * Handles special characters, including single and double quotes.
4
- * @param value - The string to escape.
5
- * @returns The escaped string safe for XPath.
6
- */
7
- export declare function escapeXPathString(value: string): string;
8
- /**
9
- * Generates both a complicated XPath and a standard XPath for a given DOM element.
10
- * @param element - The target DOM element.
11
- * @param documentOverride - Optional document override.
12
- * @returns An object containing both XPaths.
13
- */
14
- export declare function generateXPathsForElement(element: ChildNode): Promise<string[]>;
@@ -1,33 +0,0 @@
1
- import { LogLine } from "../../types/log";
2
- import { LLMClient } from "../llm/LLMClient";
3
- import { StagehandPage } from "../StagehandPage";
4
- import { ActResult, ObserveResult, ActOptions } from "@/types/stagehand";
5
- import { StagehandObserveHandler } from "@/lib/handlers/observeHandler";
6
- /**
7
- * NOTE: Vision support has been removed from this version of Stagehand.
8
- * If useVision or verifierUseVision is set to true, a warning is logged and
9
- * the flow continues as if vision = false.
10
- */
11
- export declare class StagehandActHandler {
12
- private readonly stagehandPage;
13
- private readonly logger;
14
- private readonly selfHeal;
15
- private readonly experimental;
16
- constructor({ logger, stagehandPage, selfHeal, experimental, }: {
17
- logger: (logLine: LogLine) => void;
18
- stagehandPage: StagehandPage;
19
- selfHeal: boolean;
20
- experimental: boolean;
21
- });
22
- /**
23
- * Perform an immediate Playwright action based on an ObserveResult object
24
- * that was returned from `page.observe(...)`.
25
- */
26
- actFromObserveResult(observe: ObserveResult, domSettleTimeoutMs?: number): Promise<ActResult>;
27
- /**
28
- * Perform an act based on an instruction.
29
- * This method will observe the page and then perform the act on the first element returned.
30
- */
31
- observeAct(actionOrOptions: ActOptions, observeHandler: StagehandObserveHandler, llmClient: LLMClient, requestId: string): Promise<ActResult>;
32
- private _performPlaywrightMethod;
33
- }
@@ -1,58 +0,0 @@
1
- import { AgentExecuteOptions, AgentHandlerOptions, AgentResult } from "@/types/agent";
2
- import { ToolSet } from "ai/dist";
3
- import { LogLine } from "../../types/log";
4
- import { StagehandPage } from "../StagehandPage";
5
- import { AgentClient } from "../agent/AgentClient";
6
- import { StagehandAgent } from "../agent/StagehandAgent";
7
- import { Stagehand } from "../index";
8
- export declare class CuaAgentHandler {
9
- private stagehand;
10
- private stagehandPage;
11
- private agent;
12
- private provider;
13
- private logger;
14
- private agentClient;
15
- private options;
16
- private screenshotCollector?;
17
- private highlightCursor;
18
- constructor(stagehand: Stagehand, stagehandPage: StagehandPage, logger: (message: LogLine) => void, options: AgentHandlerOptions, tools?: ToolSet);
19
- private setupAgentClient;
20
- /**
21
- * Execute a task with the agent
22
- */
23
- execute(optionsOrInstruction: AgentExecuteOptions | string): Promise<AgentResult>;
24
- /**
25
- * Execute a single action on the page
26
- */
27
- private executeAction;
28
- private updateClientViewport;
29
- private updateClientUrl;
30
- getAgent(): StagehandAgent;
31
- getClient(): AgentClient;
32
- captureAndSendScreenshot(): Promise<unknown>;
33
- /**
34
- * Inject a cursor element into the page for visual feedback
35
- */
36
- private injectCursor;
37
- /**
38
- * Update the cursor position on the page
39
- */
40
- private updateCursorPosition;
41
- /**
42
- * Animate a click at the given position
43
- */
44
- private animateClick;
45
- private get page();
46
- /**
47
- * Set the screenshot collector for this agent handler
48
- */
49
- setScreenshotCollector(collector: any): void;
50
- /**
51
- * Get the screenshot collector
52
- */
53
- getScreenshotCollector(): any;
54
- /**
55
- * Set the tools for this agent handler
56
- */
57
- setTools(tools: ToolSet): void;
58
- }
@@ -1,54 +0,0 @@
1
- import { z } from "zod/v3";
2
- import { ZodPathSegments } from "../../types/stagehand";
3
- import { LLMClient } from "../llm/LLMClient";
4
- import { StagehandPage } from "../StagehandPage";
5
- import { Stagehand } from "../index";
6
- export declare class StagehandExtractHandler {
7
- private readonly stagehand;
8
- private readonly stagehandPage;
9
- private readonly logger;
10
- private readonly userProvidedInstructions?;
11
- private readonly experimental;
12
- constructor({ stagehand, logger, stagehandPage, userProvidedInstructions, experimental, }: {
13
- stagehand: Stagehand;
14
- logger: (message: {
15
- category?: string;
16
- message: string;
17
- level?: number;
18
- auxiliary?: {
19
- [key: string]: {
20
- value: string;
21
- type: string;
22
- };
23
- };
24
- }) => void;
25
- stagehandPage: StagehandPage;
26
- userProvidedInstructions?: string;
27
- experimental: boolean;
28
- });
29
- extract<T extends z.AnyZodObject>({ instruction, schema, content, llmClient, requestId, domSettleTimeoutMs, useTextExtract, selector, iframes, }?: {
30
- instruction?: string;
31
- schema?: T;
32
- content?: z.infer<T>;
33
- chunksSeen?: Array<number>;
34
- llmClient?: LLMClient;
35
- requestId?: string;
36
- domSettleTimeoutMs?: number;
37
- useTextExtract?: boolean;
38
- selector?: string;
39
- iframes?: boolean;
40
- }): Promise<z.infer<T>>;
41
- private extractPageText;
42
- private domExtract;
43
- }
44
- /**
45
- * Scans the provided Zod schema for any `z.string().url()` fields and
46
- * replaces them with `z.number()`.
47
- *
48
- * @param schema - The Zod object schema to transform.
49
- * @returns A tuple containing:
50
- * 1. The transformed schema (or the original schema if no changes were needed).
51
- * 2. An array of {@link ZodPathSegments} objects representing all the replaced URL fields,
52
- * with each path segment showing where in the schema the replacement occurred.
53
- */
54
- export declare function transformUrlStringsToNumericIds<T extends z.ZodObject<z.ZodRawShape>>(schema: T): [T, ZodPathSegments[]];
@@ -1,21 +0,0 @@
1
- import { Page, Locator, FrameLocator } from "playwright";
2
- import { MethodHandlerContext } from "@/types/act";
3
- export declare function deepLocatorWithShadow(root: Page | FrameLocator, xpath: string): Promise<Locator>;
4
- export declare function deepLocator(root: Page | FrameLocator, xpath: string): Locator;
5
- /**
6
- * A mapping of playwright methods that may be chosen by the LLM to their
7
- * implementation.
8
- */
9
- export declare const methodHandlerMap: Record<string, (ctx: MethodHandlerContext) => Promise<void>>;
10
- export declare function scrollToNextChunk(ctx: MethodHandlerContext): Promise<void>;
11
- export declare function scrollToPreviousChunk(ctx: MethodHandlerContext): Promise<void>;
12
- export declare function scrollElementIntoView(ctx: MethodHandlerContext): Promise<void>;
13
- export declare function scrollElementToPercentage(ctx: MethodHandlerContext): Promise<void>;
14
- export declare function fillOrType(ctx: MethodHandlerContext): Promise<void>;
15
- export declare function pressKey(ctx: MethodHandlerContext): Promise<void>;
16
- export declare function selectOption(ctx: MethodHandlerContext): Promise<void>;
17
- export declare function clickElement(ctx: MethodHandlerContext): Promise<void>;
18
- /**
19
- * Fallback method: if method is not in our map but *is* a valid Playwright locator method.
20
- */
21
- export declare function fallbackLocatorMethod(ctx: MethodHandlerContext): Promise<void>;
@@ -1,40 +0,0 @@
1
- import { LogLine } from "../../types/log";
2
- import { Stagehand } from "../index";
3
- import { LLMClient } from "../llm/LLMClient";
4
- import { StagehandPage } from "../StagehandPage";
5
- export declare class StagehandObserveHandler {
6
- private readonly stagehand;
7
- private readonly logger;
8
- private readonly stagehandPage;
9
- private readonly experimental;
10
- private readonly userProvidedInstructions?;
11
- constructor({ stagehand, logger, stagehandPage, userProvidedInstructions, experimental, }: {
12
- stagehand: Stagehand;
13
- logger: (logLine: LogLine) => void;
14
- stagehandPage: StagehandPage;
15
- userProvidedInstructions?: string;
16
- experimental: boolean;
17
- });
18
- observe({ instruction, llmClient, requestId, returnAction, onlyVisible, drawOverlay, fromAct, iframes, }: {
19
- instruction: string;
20
- llmClient: LLMClient;
21
- requestId: string;
22
- domSettleTimeoutMs?: number;
23
- returnAction?: boolean;
24
- /**
25
- * @deprecated The `onlyVisible` parameter has no effect in this version of Stagehand and will be removed in later versions.
26
- */
27
- onlyVisible?: boolean;
28
- drawOverlay?: boolean;
29
- fromAct?: boolean;
30
- iframes?: boolean;
31
- }): Promise<({
32
- selector: string;
33
- description: string;
34
- } | {
35
- selector: string;
36
- method: string;
37
- arguments: string[];
38
- description: string;
39
- })[]>;
40
- }
@@ -1,27 +0,0 @@
1
- import { AgentExecuteOptions, AgentResult } from "@/types/agent";
2
- import { LogLine } from "@/types/log";
3
- import { LLMClient } from "../llm/LLMClient";
4
- import { ToolSet } from "ai";
5
- import { Stagehand } from "../index";
6
- export declare class StagehandAgentHandler {
7
- private stagehand;
8
- private logger;
9
- private llmClient;
10
- private executionModel?;
11
- private systemInstructions?;
12
- private tools?;
13
- private screenshotCollector?;
14
- constructor(stagehand: Stagehand, logger: (message: LogLine) => void, llmClient: LLMClient, executionModel?: string, systemInstructions?: string, tools?: ToolSet);
15
- execute(instructionOrOptions: string | AgentExecuteOptions): Promise<AgentResult>;
16
- private buildSystemPrompt;
17
- private createTools;
18
- /**
19
- * Set the screenshot collector for this agent handler
20
- */
21
- setScreenshotCollector(collector: any): void;
22
- /**
23
- * Get the screenshot collector
24
- */
25
- getScreenshotCollector(): any;
26
- setTools(tools: ToolSet): void;
27
- }
@@ -1,94 +0,0 @@
1
- import { GotoOptions } from "@/types/playwright";
2
- import { z } from "zod/v3";
3
- import { AgentExecuteOptions, AgentResult } from "../types/agent";
4
- import { EnhancedContext } from "../types/context";
5
- import { LogLine } from "../types/log";
6
- import { ClientOptions } from "../types/model";
7
- import { Page } from "../types/page";
8
- import { ActOptions, AgentConfig, ConstructorParams, ExtractOptions, HistoryEntry, InitResult, ObserveOptions, StagehandFunctionName, StagehandMetrics } from "../types/stagehand";
9
- import { StagehandPage } from "./StagehandPage";
10
- import { StagehandAPI } from "./api";
11
- import { LLMClient } from "./llm/LLMClient";
12
- import { LLMProvider } from "./llm/LLMProvider";
13
- import { connectToMCPServer } from "./mcp/connection";
14
- export declare class Stagehand {
15
- private stagehandPage;
16
- private stagehandContext;
17
- browserbaseSessionID?: string;
18
- readonly domSettleTimeoutMs: number;
19
- readonly debugDom: boolean;
20
- readonly headless: boolean;
21
- verbose: 0 | 1 | 2;
22
- llmProvider: LLMProvider;
23
- enableCaching: boolean;
24
- protected apiKey: string | undefined;
25
- private projectId;
26
- private externalLogger?;
27
- private browserbaseSessionCreateParams?;
28
- variables: {
29
- [key: string]: unknown;
30
- };
31
- private contextPath?;
32
- llmClient: LLMClient;
33
- readonly userProvidedInstructions?: string;
34
- private usingAPI;
35
- private modelName;
36
- apiClient: StagehandAPI | undefined;
37
- readonly waitForCaptchaSolves: boolean;
38
- private localBrowserLaunchOptions?;
39
- readonly selfHeal: boolean;
40
- private cleanupCalled;
41
- readonly actTimeoutMs: number;
42
- readonly logInferenceToFile?: boolean;
43
- private stagehandLogger;
44
- private disablePino;
45
- protected modelClientOptions: ClientOptions;
46
- private _env;
47
- private _browser;
48
- private _isClosed;
49
- private _history;
50
- readonly experimental: boolean;
51
- private _livePageProxy?;
52
- private createLivePageProxy;
53
- get history(): ReadonlyArray<HistoryEntry>;
54
- protected setActivePage(page: StagehandPage): void;
55
- get page(): Page;
56
- stagehandMetrics: StagehandMetrics;
57
- get metrics(): StagehandMetrics;
58
- get isClosed(): boolean;
59
- updateMetrics(functionName: StagehandFunctionName, promptTokens: number, completionTokens: number, inferenceTimeMs: number): void;
60
- private updateTotalMetrics;
61
- constructor({ env, apiKey, projectId, verbose, llmProvider, llmClient, logger, browserbaseSessionCreateParams, domSettleTimeoutMs, enableCaching, browserbaseSessionID, modelName, modelClientOptions, systemPrompt, useAPI, localBrowserLaunchOptions, waitForCaptchaSolves, logInferenceToFile, selfHeal, disablePino, experimental, }?: ConstructorParams);
62
- private registerSignalHandlers;
63
- get logger(): (logLine: LogLine) => void;
64
- get env(): "LOCAL" | "BROWSERBASE";
65
- get downloadsPath(): string;
66
- get context(): EnhancedContext;
67
- init(): Promise<InitResult>;
68
- log(logObj: LogLine): void;
69
- close(): Promise<void>;
70
- addToHistory(method: HistoryEntry["method"], parameters: ActOptions | ExtractOptions<z.AnyZodObject> | ObserveOptions | {
71
- url: string;
72
- options: GotoOptions;
73
- } | string, result?: unknown): void;
74
- /**
75
- * Create an agent instance that can be executed with different instructions
76
- * @returns An agent instance with execute() method
77
- */
78
- agent(options?: AgentConfig): {
79
- execute: (instructionOrOptions: string | AgentExecuteOptions) => Promise<AgentResult>;
80
- setScreenshotCollector?: (collector: unknown) => void;
81
- };
82
- }
83
- export * from "../types/agent";
84
- export * from "../types/browser";
85
- export * from "../types/log";
86
- export * from "../types/model";
87
- export * from "../types/page";
88
- export * from "../types/playwright";
89
- export * from "../types/stagehand";
90
- export * from "../types/stagehandApiErrors";
91
- export * from "../types/stagehandErrors";
92
- export * from "./llm/LLMClient";
93
- export * from "./llm/aisdk";
94
- export { connectToMCPServer };
@@ -1,61 +0,0 @@
1
- import { z } from "zod/v3";
2
- import { LogLine } from "../types/log";
3
- import { LLMClient } from "./llm/LLMClient";
4
- /** Simple usage shape if your LLM returns usage tokens. */
5
- interface LLMUsage {
6
- prompt_tokens: number;
7
- completion_tokens: number;
8
- total_tokens: number;
9
- }
10
- /**
11
- * For calls that use a schema: the LLMClient may return { data: T; usage?: LLMUsage }
12
- */
13
- export interface LLMParsedResponse<T> {
14
- data: T;
15
- usage?: LLMUsage;
16
- }
17
- export declare function extract({ instruction, domElements, schema, llmClient, chunksSeen, chunksTotal, requestId, logger, userProvidedInstructions, logInferenceToFile, }: {
18
- instruction: string;
19
- domElements: string;
20
- schema: z.ZodObject<z.ZodRawShape>;
21
- llmClient: LLMClient;
22
- chunksSeen: number;
23
- chunksTotal: number;
24
- requestId: string;
25
- userProvidedInstructions?: string;
26
- logger: (message: LogLine) => void;
27
- logInferenceToFile?: boolean;
28
- }): Promise<{
29
- metadata: {
30
- completed: boolean;
31
- progress: string;
32
- };
33
- prompt_tokens: number;
34
- completion_tokens: number;
35
- inference_time_ms: number;
36
- }>;
37
- export declare function observe({ instruction, domElements, llmClient, requestId, userProvidedInstructions, logger, returnAction, logInferenceToFile, fromAct, }: {
38
- instruction: string;
39
- domElements: string;
40
- llmClient: LLMClient;
41
- requestId: string;
42
- userProvidedInstructions?: string;
43
- logger: (message: LogLine) => void;
44
- returnAction?: boolean;
45
- logInferenceToFile?: boolean;
46
- fromAct?: boolean;
47
- }): Promise<{
48
- elements: ({
49
- elementId: string;
50
- description: string;
51
- } | {
52
- method: string;
53
- arguments: string[];
54
- elementId: string;
55
- description: string;
56
- })[];
57
- prompt_tokens: number;
58
- completion_tokens: number;
59
- inference_time_ms: number;
60
- }>;
61
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * Appends a new entry to the act_summary.json file, then writes the file back out.
3
- */
4
- export declare function appendSummary<T>(inferenceType: string, entry: T): void;
5
- /**
6
- * Writes `data` as JSON into a file in `directory`, using a prefix plus timestamp.
7
- * Returns both the file name and the timestamp used, so you can log them.
8
- */
9
- export declare function writeTimestampedTxtFile(directory: string, prefix: string, data: unknown): {
10
- fileName: string;
11
- timestamp: string;
12
- };
@@ -1,21 +0,0 @@
1
- import { ClientOptions } from "@anthropic-ai/sdk";
2
- import { LogLine } from "../../types/log";
3
- import { AvailableModel } from "../../types/model";
4
- import { LLMCache } from "../cache/LLMCache";
5
- import { CreateChatCompletionOptions, LLMClient, LLMResponse } from "./LLMClient";
6
- export declare class AnthropicClient extends LLMClient {
7
- type: "anthropic";
8
- private client;
9
- private cache;
10
- private enableCaching;
11
- clientOptions: ClientOptions;
12
- constructor({ enableCaching, cache, modelName, clientOptions, userProvidedInstructions, }: {
13
- logger: (message: LogLine) => void;
14
- enableCaching?: boolean;
15
- cache?: LLMCache;
16
- modelName: AvailableModel;
17
- clientOptions?: ClientOptions;
18
- userProvidedInstructions?: string;
19
- });
20
- createChatCompletion<T = LLMResponse>({ options, retries, logger, }: CreateChatCompletionOptions): Promise<T>;
21
- }
@@ -1,22 +0,0 @@
1
- import type { ClientOptions } from "openai";
2
- import { LogLine } from "../../types/log";
3
- import { AvailableModel } from "../../types/model";
4
- import { LLMCache } from "../cache/LLMCache";
5
- import { CreateChatCompletionOptions, LLMClient, LLMResponse } from "./LLMClient";
6
- export declare class CerebrasClient extends LLMClient {
7
- type: "cerebras";
8
- private client;
9
- private cache;
10
- private enableCaching;
11
- clientOptions: ClientOptions;
12
- hasVision: boolean;
13
- constructor({ enableCaching, cache, modelName, clientOptions, userProvidedInstructions, }: {
14
- logger: (message: LogLine) => void;
15
- enableCaching?: boolean;
16
- cache?: LLMCache;
17
- modelName: AvailableModel;
18
- clientOptions?: ClientOptions;
19
- userProvidedInstructions?: string;
20
- });
21
- createChatCompletion<T = LLMResponse>({ options, retries, logger, }: CreateChatCompletionOptions): Promise<T>;
22
- }
@@ -1,24 +0,0 @@
1
- import { LogLine } from "../../types/log";
2
- import { AvailableModel, ClientOptions } from "../../types/model";
3
- import { LLMCache } from "../cache/LLMCache";
4
- import { CreateChatCompletionOptions, LLMClient, LLMResponse } from "./LLMClient";
5
- export declare class GoogleClient extends LLMClient {
6
- type: "google";
7
- private client;
8
- private cache;
9
- private enableCaching;
10
- clientOptions: ClientOptions;
11
- hasVision: boolean;
12
- private logger;
13
- constructor({ logger, // Added logger based on other clients
14
- enableCaching, cache, modelName, clientOptions, }: {
15
- logger: (message: LogLine) => void;
16
- enableCaching?: boolean;
17
- cache?: LLMCache;
18
- modelName: AvailableModel;
19
- clientOptions?: ClientOptions;
20
- });
21
- private formatMessages;
22
- private formatTools;
23
- createChatCompletion<T = LLMResponse>({ options, logger, retries, }: CreateChatCompletionOptions): Promise<T>;
24
- }
@@ -1,22 +0,0 @@
1
- import type { ClientOptions } from "openai";
2
- import { LogLine } from "../../types/log";
3
- import { AvailableModel } from "../../types/model";
4
- import { LLMCache } from "../cache/LLMCache";
5
- import { CreateChatCompletionOptions, LLMClient, LLMResponse } from "./LLMClient";
6
- export declare class GroqClient extends LLMClient {
7
- type: "groq";
8
- private client;
9
- private cache;
10
- private enableCaching;
11
- clientOptions: ClientOptions;
12
- hasVision: boolean;
13
- constructor({ enableCaching, cache, modelName, clientOptions, userProvidedInstructions, }: {
14
- logger: (message: LogLine) => void;
15
- enableCaching?: boolean;
16
- cache?: LLMCache;
17
- modelName: AvailableModel;
18
- clientOptions?: ClientOptions;
19
- userProvidedInstructions?: string;
20
- });
21
- createChatCompletion<T = LLMResponse>({ options, retries, logger, }: CreateChatCompletionOptions): Promise<T>;
22
- }
@@ -1,99 +0,0 @@
1
- import { LLMTool } from "@/types/llm";
2
- import { embed, embedMany, experimental_generateImage, experimental_generateSpeech, experimental_transcribe, generateObject, generateText, LanguageModel, streamObject, streamText } from "ai";
3
- import { ZodType } from "zod/v3";
4
- import { LogLine } from "../../types/log";
5
- import { AvailableModel, ClientOptions } from "../../types/model";
6
- export interface ChatMessage {
7
- role: "system" | "user" | "assistant";
8
- content: ChatMessageContent;
9
- }
10
- export type ChatMessageContent = string | (ChatMessageImageContent | ChatMessageTextContent)[];
11
- export interface ChatMessageImageContent {
12
- type: string;
13
- image_url?: {
14
- url: string;
15
- };
16
- text?: string;
17
- source?: {
18
- type: string;
19
- media_type: string;
20
- data: string;
21
- };
22
- }
23
- export interface ChatMessageTextContent {
24
- type: string;
25
- text: string;
26
- }
27
- export declare const AnnotatedScreenshotText = "This is a screenshot of the current page state with the elements annotated on it. Each element id is annotated with a number to the top left of it. Duplicate annotations at the same location are under each other vertically.";
28
- export interface ChatCompletionOptions {
29
- messages: ChatMessage[];
30
- temperature?: number;
31
- top_p?: number;
32
- frequency_penalty?: number;
33
- presence_penalty?: number;
34
- image?: {
35
- buffer: Buffer;
36
- description?: string;
37
- };
38
- response_model?: {
39
- name: string;
40
- schema: ZodType;
41
- };
42
- tools?: LLMTool[];
43
- tool_choice?: "auto" | "none" | "required";
44
- maxTokens?: number;
45
- requestId?: string;
46
- }
47
- export type LLMResponse = {
48
- id: string;
49
- object: string;
50
- created: number;
51
- model: string;
52
- choices: {
53
- index: number;
54
- message: {
55
- role: string;
56
- content: string | null;
57
- tool_calls: {
58
- id: string;
59
- type: string;
60
- function: {
61
- name: string;
62
- arguments: string;
63
- };
64
- }[];
65
- };
66
- finish_reason: string;
67
- }[];
68
- usage: {
69
- prompt_tokens: number;
70
- completion_tokens: number;
71
- total_tokens: number;
72
- };
73
- };
74
- export interface CreateChatCompletionOptions {
75
- options: ChatCompletionOptions;
76
- logger: (message: LogLine) => void;
77
- retries?: number;
78
- }
79
- export declare abstract class LLMClient {
80
- type: "openai" | "anthropic" | "cerebras" | "groq" | (string & {});
81
- modelName: AvailableModel | (string & {});
82
- hasVision: boolean;
83
- clientOptions: ClientOptions;
84
- userProvidedInstructions?: string;
85
- constructor(modelName: AvailableModel, userProvidedInstructions?: string);
86
- abstract createChatCompletion<T = LLMResponse & {
87
- usage?: LLMResponse["usage"];
88
- }>(options: CreateChatCompletionOptions): Promise<T>;
89
- generateObject: typeof generateObject;
90
- generateText: typeof generateText;
91
- streamText: typeof streamText;
92
- streamObject: typeof streamObject;
93
- generateImage: typeof experimental_generateImage;
94
- embed: typeof embed;
95
- embedMany: typeof embedMany;
96
- transcribe: typeof experimental_transcribe;
97
- generateSpeech: typeof experimental_generateSpeech;
98
- getLanguageModel?(): LanguageModel;
99
- }
@@ -1,13 +0,0 @@
1
- import { LogLine } from "../../types/log";
2
- import { AvailableModel, ClientOptions, ModelProvider } from "../../types/model";
3
- import { LLMClient } from "./LLMClient";
4
- export declare function getAISDKLanguageModel(subProvider: string, subModelName: string, apiKey?: string, baseURL?: string): import("ai/dist").LanguageModelV1;
5
- export declare class LLMProvider {
6
- private logger;
7
- private enableCaching;
8
- private cache;
9
- constructor(logger: (message: LogLine) => void, enableCaching: boolean);
10
- cleanRequestCache(requestId: string): void;
11
- getClient(modelName: AvailableModel, clientOptions?: ClientOptions): LLMClient;
12
- static getModelProvider(modelName: AvailableModel): ModelProvider;
13
- }