mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-20 21:23:23 +00:00
18 lines
791 B
TypeScript
18 lines
791 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { resolveCoreToolProfilePolicy } from "./tool-catalog.js";
|
|
|
|
describe("tool-catalog", () => {
|
|
it("includes code_execution, web_search, x_search, web_fetch, and update_plan in the coding profile policy", () => {
|
|
const policy = resolveCoreToolProfilePolicy("coding");
|
|
expect(policy).toBeDefined();
|
|
expect(policy!.allow).toContain("code_execution");
|
|
expect(policy!.allow).toContain("web_search");
|
|
expect(policy!.allow).toContain("x_search");
|
|
expect(policy!.allow).toContain("web_fetch");
|
|
expect(policy!.allow).toContain("image_generate");
|
|
expect(policy!.allow).toContain("music_generate");
|
|
expect(policy!.allow).toContain("video_generate");
|
|
expect(policy!.allow).toContain("update_plan");
|
|
});
|
|
});
|