Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

382 B
Raw Blame
import type { ModelCall } from "../src/runtime-model-call.js";

const unused = () => Promise.reject(new Error("unused model call"));

/** A ModelCall whose methods fail unless the test overrides them. */
export const stubModelCall = (
  overrides: Partial<ModelCall> = {},
): ModelCall => ({
  call: unused,
  text: unused,
  workspace: unused,
  chain: unused,
  ...overrides,
});