export type GetApiApiV1EuaiactAccuracyArgs = {Authorization: string}; export type GetApiApiV1EuaiactAccuracyOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Accuracy summary (proxied to orchestrator) * * GET /api/v1/euaiact/accuracy */ export const getApiApiV1EuaiactAccuracy = async (args: GetApiApiV1EuaiactAccuracyArgs, options?: GetApiApiV1EuaiactAccuracyOptions) => { const {baseUrl = "https://agent.getaxonflow.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (args.Authorization != null) headers.set("Authorization", String(args.Authorization)) const url = `${baseUrl.replace(/\/+$/, '')}/api/v1/euaiact/accuracy${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };