MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / inferAgentType

Function inferAgentType

tests/capabilities.test.ts:9–12  ·  view source on GitHub ↗
(tools: Array<{ name: string }>)

Source from the content-addressed store, hash-verified

7 describe("inferAgentType (private)", () => {
8 // Access private method for testing using any cast
9 const inferAgentType = (tools: Array<{ name: string }>) =>
10 (discovery as any).inferAgentType(
11 tools.map((t) => ({ name: t.name, description: "", input_schema: {}, verified_at: "" }))
12 );
13
14 it("should infer buying type from buying-specific tools", () => {
15 expect(inferAgentType([{ name: "get_products" }])).toBe("buying");

Callers 1

Calls 1

inferAgentTypeMethod · 0.45

Tested by

no test coverage detected