(_opts?: { from?: string })
| 2 | import { loadConfig, requireApiKey } from "./config.js"; |
| 3 | |
| 4 | export function createClient(_opts?: { from?: string }): E2AClient { |
| 5 | const config = loadConfig(); |
| 6 | const apiKey = requireApiKey(config); |
| 7 | return new E2AClient({ apiKey, baseUrl: config.api_url }); |
| 8 | } |
| 9 | |
| 10 | export function requireAgentEmail(fromOverride?: string): string { |
| 11 | const config = loadConfig(); |
no test coverage detected