Full SDK workspace: core, contracts, sdk, cli, browser-host, browser-kit, federation, omega-core, oracle, self-healing, strategies, tools, emacs. Clean extraction from the development monorepo. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
11 lines
393 B
TypeScript
11 lines
393 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { SemanticCache } from "../src/semanticCache";
|
|
|
|
describe("oracle/cached-infer package smoke", () => {
|
|
it("exports a semantic cache implementation", () => {
|
|
const cache = new SemanticCache({ maxEntries: 4, hashAlgorithm: "simple" });
|
|
cache.set("prompt", "response", "model");
|
|
expect(cache.has("prompt")).toBe(true);
|
|
});
|
|
});
|