eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
19 lines (18 loc) • 910 B
TypeScript
import type { LanguageModel } from "ai";
import { type RuntimeModelReference } from "#runtime/agent/bootstrap.js";
/**
* Returns true when authored runtime models should resolve through the
* dedicated deterministic mock adapter. The adapter is internal to the test
* tiers: it activates only under `NODE_ENV=test`, keeping the unit,
* integration, and scenario suites deterministic and credential-free.
*/
export declare function shouldMockAuthoredRuntimeModels(): boolean;
/**
* Creates a deterministic authored-model mock for one runtime model reference.
*/
export declare function createMockAuthoredRuntimeModel(reference: RuntimeModelReference): LanguageModel;
/**
* Resolves the current authored runtime model onto the deterministic mock
* adapter when the test seam is active.
*/
export declare function resolveMockAuthoredRuntimeModel(reference: RuntimeModelReference): LanguageModel | null;