cloudflare
Version:
The official TypeScript library for the Cloudflare API
41 lines • 1.51 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../core/resource.mjs";
export var BaseMarkdownForAgents = /* @__PURE__ */ (() => {
class BaseMarkdownForAgents extends APIResource {
/**
* Retrieves the overall median HTML-to-markdown reduction ratio for AI agent
* requests over the given date range.
*
* @example
* ```ts
* const response =
* await client.radar.ai.markdownForAgents.summary();
* ```
*/
summary(query = {}, options) {
return this._client.get('/radar/ai/markdown_for_agents/summary', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the median HTML-to-markdown reduction ratio over time for AI agent
* requests.
*
* @example
* ```ts
* const response =
* await client.radar.ai.markdownForAgents.timeseries();
* ```
*/
timeseries(query = {}, options) {
return this._client.get('/radar/ai/markdown_for_agents/timeseries', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseMarkdownForAgents._key = Object.freeze([
'radar',
'ai',
'markdownForAgents',
]);
return BaseMarkdownForAgents;
})();
export class MarkdownForAgents extends BaseMarkdownForAgents {
}
//# sourceMappingURL=markdown-for-agents.mjs.map