@prismshadow/penguin-library-trace · library/trace/src/ports.ts:78

TracePricing

interface

Where a Project's pricing table lives. The server's ProjectConfigStore satisfies this structurally.

API

@Interface()
export abstract class TracePricing {
  abstract getPricing(
      projectId: string,
      provider: string,
      modelId: string,
    ): Promise<TieredRates | undefined>;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Useconsumed by (1)

Members (1)

getPricing

getPricing(projectId: string, provider: string, modelId: string): Promise<TieredRates | undefined>

The Project's current price for a paired reference; resolves undefined when it carries none.

@paramprojectIdstring
@paramproviderstring
@parammodelIdstring
@returnsPromise<TieredRates | undefined>