UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

13 lines • 712 B
import type { AgentPricingStore, CurrentModelPrice, ModelPriceInput } from '../index.js'; /** * A fully in-memory {@link AgentPricingStore} for unit tests and the offline demo. Keyed by * `modelId`, so an `upsert` supersedes the model's prior price (the same "one current row per model" * invariant the SQL adapter enforces). Omit a model to leave it unpriced — the loop then reports * `costUsd: null` for it (never a fabricated `0`). */ export declare class InMemoryPricingStore implements AgentPricingStore { private readonly prices; upsertModelPrice(input: ModelPriceInput): Promise<void>; listCurrentPrices(): Promise<CurrentModelPrice[]>; } //# sourceMappingURL=in-memory-pricing.d.ts.map