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
13 changes: 6 additions & 7 deletions test/integration/acpClient.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,15 @@ describe("AcpClient Integration Testing", () => {
}
}, 30000);

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

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

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

it("should handle search with sort options", async () => {
Expand All @@ -246,7 +245,7 @@ describe("AcpClient Integration Testing", () => {
it("should handle search with graduation status filter", async () => {
const keyword = "agent";
const options = {
top_k: 5,
topK: 5,
graduationStatus: AcpGraduationStatus.GRADUATED,
};

Expand All @@ -259,7 +258,7 @@ describe("AcpClient Integration Testing", () => {
it("should handle search with online status filter", async () => {
const keyword = "agent";
const options = {
top_k: 5,
topK: 5,
onlineStatus: AcpOnlineStatus.ONLINE,
};

Expand Down
Loading
Loading