(args: {
apiKey?: string;
baseUrl?: string;
})
| 77 | } |
| 78 | |
| 79 | export function createBrowserbaseClient(args: { |
| 80 | apiKey?: string; |
| 81 | baseUrl?: string; |
| 82 | }) { |
| 83 | return new Browserbase({ |
| 84 | apiKey: resolveApiKey(args), |
| 85 | baseURL: resolveBaseUrl(args), |
| 86 | defaultHeaders: attributionHeaders(), |
| 87 | }); |
| 88 | } |
| 89 | |
| 90 | export async function withBrowserbaseApi<T>( |
| 91 | command: BrowserbaseApiCommand, |