@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
22 lines • 1.42 kB
TypeScript
import type { Api, Model } from "@earendil-works/pi-ai";
/** The catalog reads that decide whether a `-fast` id is the priority-tier twin of a base model. */
export interface FastPairRegistry {
find(provider: string, id: string): Model<Api> | undefined;
getUpstreamModelId(model: Model<Api>): string | undefined;
getServiceTier(model: Model<Api>): string | undefined;
}
/** The base model a `-fast` catalog variant is served as (same provider, same request id, priority tier). */
export declare function findBaseModel(registry: FastPairRegistry, fastModel: Model<Api>): Model<Api> | undefined;
/** The `-fast` catalog variant of a base model, when the catalog pairs them. */
export declare function findFastModel(registry: FastPairRegistry, baseModel: Model<Api>): Model<Api> | undefined;
/** A registry that may lack the catalog reads (test doubles); without them no sibling is ever paired. */
export interface PartialFastPairRegistry {
find(provider: string, id: string): Model<Api> | undefined;
getUpstreamModelId?(model: Model<Api>): string | undefined;
getServiceTier?(model: Model<Api>): string | undefined;
}
/** `resolveChainKey`'s option naming the current model's `-fast` sibling, when the catalog has one. */
export declare function fastSiblingOption(registry: PartialFastPairRegistry, model: Model<Api>): {
fastSibling?: Model<Api>;
};
//# sourceMappingURL=fast-model-pair.d.ts.map