UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

15 lines (14 loc) 845 B
import type { RunSessionLimits } from "#channel/types.js"; import type { HarnessSession } from "#harness/types.js"; /** * Computes the session token limits a delegated child inherits from its parent: * the remaining quota (configured limit minus accumulated usage) split evenly * across the batch's delegated calls, per axis, at dispatch time. `false` * marks an axis with no inherited cap. * * Splitting by `fanoutSize` makes one dispatch batch collectively * bounded by the parent's remainder. N parallel children cannot each spend * the full remainder. Sequential batches see the quota net of completed * children because their usage folds back into the parent's session totals. */ export declare function resolveRemainingSessionTokenLimits(session: Pick<HarnessSession, "limits" | "state">, fanoutSize?: number): RunSessionLimits;