refactor: remove retired agent provider integration

This commit is contained in:
2026-11-12 15:53:33 -08:00
parent d88018fd64
commit 91c7c0310e
42 changed files with 271 additions and 245 deletions
+2 -7
View File
@@ -1,7 +1,7 @@
import assert from "node:assert/strict";
import test from "node:test";
import { env } from "../src/env.js";
import { describeProviderChatBackend, fetchProviderCatalogModels } from "../src/llm/provider-adapters.js";
import { describeProviderChatBackend, fetchProviderCatalogModels, listModelCatalogProviders } from "../src/llm/provider-adapters.js";
for (const { name, listedModels, expectedModels } of [
{
@@ -47,6 +47,7 @@ for (const { name, listedModels, expectedModels } of [
}
test("provider backend registry selects chat protocol and managed-tool mode", () => {
assert.deepEqual(listModelCatalogProviders(), ["openai", "anthropic", "xai", "gemini"]);
assert.deepEqual(describeProviderChatBackend("openai", []), {
provider: "openai",
protocol: "chat-completions",
@@ -77,10 +78,4 @@ test("provider backend registry selects chat protocol and managed-tool mode", ()
managedTools: true,
enabledTools: ["web_search"],
});
assert.deepEqual(describeProviderChatBackend("hermes-agent", ["web_search"]), {
provider: "hermes-agent",
protocol: "chat-completions",
managedTools: false,
enabledTools: [],
});
});