@sema-agent/core
Version:
Stateless, task-oriented AI agent core
14 lines (13 loc) • 1.21 kB
TypeScript
/**
* A resume's money-ceiling door: the run's OWN money ceiling over the model it runs on that the ceiling cannot count — the refusal the
* start's doors give ({@link unpricedModelRefusal}), asked of the config a resume is handed, so `Runner.judgeResumeConfig` and the
* resume's pre-claim ladder say what prepare would say after the claim (the row staying pending).
*
* The model is read the way prepare reads it (`resolveRunModel` over the role maps' receipts: `deps` with the deployment's, `taskRoles`
* the task's). `priorLedger` is the resumed row's ledger (what its chain has left of a total); none ⇒ the config's own ceiling.
* A model that does not resolve — or a price table that cannot be read — is prepare's refusal to give, after the claim and in its own
* words, not this door's: nothing is asked of it here.
*/
import type { ResourceLedger } from "../checkpoint-store.js";
import type { RunnerDeps, TaskSpec } from "../types.js";
export declare function refuseUncountedOwnModel(config: Pick<TaskSpec, "limits" | "resourceSuspend" | "model" | "modelRole" | "roles" | "thinking">, deps: RunnerDeps, taskRoles: TaskSpec["roles"], priorLedger: ResourceLedger | undefined): void;