Skip to content

Commit 17cdf07

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/subscription
2 parents c22e854 + 2928b3d commit 17cdf07

9 files changed

Lines changed: 352 additions & 683 deletions

File tree

README.md

Lines changed: 54 additions & 221 deletions
Large diffs are not rendered by default.

examples/acp-base/skip-evaluation/buyer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import AcpClient, {
1111
import {
1212
BUYER_AGENT_WALLET_ADDRESS,
1313
WHITELISTED_WALLET_PRIVATE_KEY,
14-
BUYER_ENTITY_ID, SELLER_AGENT_WALLET_ADDRESS
14+
BUYER_ENTITY_ID,
1515
} from "./env";
1616

1717
async function buyer() {

src/acpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class AcpClient {
102102
},
103103
});
104104

105-
this.noAuthAcpClient = this.acpClient.create({
105+
this.noAuthAcpClient = axios.create({
106106
baseURL: `${this.acpUrl}/api`,
107107
});
108108

src/interfaces.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,12 @@ export interface IAcpAgent {
126126
twitterHandle: string;
127127
jobs: {
128128
name: string;
129+
price: number;
129130
priceV2: {
130131
type: PriceType;
131132
value: number;
132133
};
134+
requiredFunds: boolean;
133135
requirement?: Object | string;
134136
deliverable?: Object | string;
135137
subscriptionTiers?: string[];

test/integration/acpClient.integration.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe("AcpClient Integration Testing", () => {
111111
it("should browse agents with keyword", async () => {
112112
const keyword = "trading";
113113
const options = {
114-
top_k: 5,
114+
topK: 5,
115115
};
116116

117117
const result = await acpClient.browseAgents(keyword, options);
@@ -158,7 +158,7 @@ describe("AcpClient Integration Testing", () => {
158158
it("should return job offerings as AcpJobOffering instances", async () => {
159159
const keyword = "agent";
160160
const options = {
161-
top_k: 5,
161+
topK: 5,
162162
};
163163

164164
const result = await acpClient.browseAgents(keyword, options);
@@ -185,7 +185,7 @@ describe("AcpClient Integration Testing", () => {
185185
it("should filter out own wallet address", async () => {
186186
const keyword = "agent";
187187
const options = {
188-
top_k: 10,
188+
topK: 10,
189189
};
190190

191191
const result = await acpClient.browseAgents(keyword, options);
@@ -203,7 +203,7 @@ describe("AcpClient Integration Testing", () => {
203203
it("should filter by contract address", async () => {
204204
const keyword = "agent";
205205
const options = {
206-
top_k: 10,
206+
topK: 10,
207207
};
208208

209209
const result = await acpClient.browseAgents(keyword, options);
@@ -235,8 +235,8 @@ describe("AcpClient Integration Testing", () => {
235235
it("should handle search with sort options", async () => {
236236
const keyword = "trading";
237237
const options = {
238-
top_k: 5,
239-
sort_by: [AcpAgentSort.SUCCESSFUL_JOB_COUNT],
238+
topK: 5,
239+
sortBy: [AcpAgentSort.SUCCESSFUL_JOB_COUNT],
240240
};
241241

242242
const result = await acpClient.browseAgents(keyword, options);
@@ -274,7 +274,7 @@ describe("AcpClient Integration Testing", () => {
274274
it("should return empty or minimal results for non-existent keyword", async () => {
275275
const keyword = "thiskeywordisnotakeyworddonotreturnanyagents";
276276
const options = {
277-
top_k: 5,
277+
topK: 5,
278278
};
279279

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

0 commit comments

Comments
 (0)