(tools: Array<{ name: string }>)
| 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"); |
no test coverage detected