@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
10 lines • 755 B
TypeScript
import type { ModelPriceInput } from '../spi/pricing-store.js';
/** What a price write must look like — named by the refusal of the console route and the CLI. */
export declare const PRICE_INPUT_SHAPE = "{modelId: string, inputPricePer1m: number, outputPricePer1m: number, cacheWritePricePer1m?: number, cacheReadPricePer1m?: number}";
/**
* Read one model's per-1M rates out of an untrusted body (`POST <path>/governance/pricing`, or the
* flags of `agent:pricing:set`). `null` when it is not a price: no model id, or a missing or
* non-numeric input/output rate. Optional cache rates that are not numbers are dropped.
*/
export declare function parseModelPriceInput(body: unknown): ModelPriceInput | null;
//# sourceMappingURL=price-input.d.ts.map