Tyr Admission Controller - v0.36.1
    Preparing search index...

    Type Alias Pools

    type Pools = {
        applyLimits(
            updates: readonly PoolLimitsUpdate[],
        ): PoolsApplyLimitsResult;
        close(): void;
        drain(
            timeoutMs?: number,
            options?: PoolDrainOptions,
        ): Promise<PoolsDrainResult>;
        get(name: string): Pool | undefined;
        limits(): Record<string, LLMAdmissionLimits>;
        select(model: string): Pool | undefined;
        stats(): Record<string, TyrPoolStats>;
    }
    Index
    • Stops admission and waits for base concurrency plus final LLM token settlement, optionally with a bound. With stopOnTimeout, requests still running at the deadline are stopped, and stopped is their total.

      Parameters

      Returns Promise<PoolsDrainResult>

    • Exact pool-name lookup for local control-plane integrations.

      Parameters

      • name: string

      Returns Pool | undefined

    • Returns Record<string, LLMAdmissionLimits>

    • Longest-prefix match across all pools; undefined if no pool matches.

      Parameters

      • model: string

      Returns Pool | undefined