import type { Api, Model } from "@caupulican/pi-ai"; import type { ModelTier } from "../autonomy/contracts.ts"; /** * True for a model the capability-gate spine treats as LOCAL/MANAGED — never cloud. * Shared by agent-session.ts's validation-escalation branch and model-router-controller.ts's * tier-resolution verdict consultation so there is exactly one place composing this * predicate, instead of two divergent copies. Reuses {@link isLocalExecutionModel} (any * ollama/transformers/llama-cpp provider, or a localhost-family baseUrl) OR'd with the same * provider/managed-prism check `LocalRuntimeController.isManagedLocalModel` uses internally — built * from the identical exported provider constants ({@link OLLAMA_PROVIDER}, {@link * HF_TRANSFORMERS_PROVIDER}) and {@link isPiManagedPrismLlamaCppModel}, so there is no second, * drifting definition of "is this ollama/transformers/pi-managed-prism" (that method itself is * private to LocalRuntimeController, which this module does not own/import). A cloud model (a * known-capable provider on a non-local baseUrl) always returns false. */ export declare function isLocalOrManagedRouterModel(model: Model): boolean; export declare function shouldEscalateModelRouterTool(options: { tier: ModelTier; toolName: string; args?: unknown; /** The route's reasonCode; executor-lane turns carry "executor_direct". */ reasonCode?: string; }): boolean; //# sourceMappingURL=tool-escalation.d.ts.map