mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 02:20:30 +00:00
refactor(providers): add family replay and tool hooks
This commit is contained in:
15
src/plugin-sdk/provider-tools.test.ts
Normal file
15
src/plugin-sdk/provider-tools.test.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
buildProviderToolCompatFamilyHooks,
|
||||
inspectGeminiToolSchemas,
|
||||
normalizeGeminiToolSchemas,
|
||||
} from "./provider-tools.js";
|
||||
|
||||
describe("buildProviderToolCompatFamilyHooks", () => {
|
||||
it("maps the gemini family to the shared schema helpers", () => {
|
||||
const hooks = buildProviderToolCompatFamilyHooks("gemini");
|
||||
|
||||
expect(hooks.normalizeToolSchemas).toBe(normalizeGeminiToolSchemas);
|
||||
expect(hooks.inspectToolSchemas).toBe(inspectGeminiToolSchemas);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user