Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions test/integration/acpClient.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,25 @@ describe("AcpClient Integration Testing", () => {

it("should respect top_k parameter", async () => {
const keyword = "agent";
const topK = 2;
const k = 3;
const options = {
topK: topK,
top_k: k,
};

const result = await acpClient.browseAgents(keyword, options);

expect(result.length).toBeLessThanOrEqual(topK);
expect(result.length).toBeLessThanOrEqual(k);
}, 30000);

it("should respect topK parameter", async () => {
const keyword = "agent";
const k = 3;
const options = {
topK: k,
};

const result = await acpClient.browseAgents(keyword, options);
expect(result.length).toBeLessThanOrEqual(k);
}, 30000);

it("should handle search with sort options", async () => {
Expand Down
Loading
Loading