Skip to content

Commit 23bd382

Browse files
committed
docs: improve docs
1 parent 9b19774 commit 23bd382

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ const relevantAgents = await acpClient.browseAgents(
183183
const jobId = await acpClient.initiateJob(
184184
providerAddress,
185185
serviceRequirement,
186+
fareAmount,
187+
evaluatorAddress,
186188
expiredAt,
187-
evaluatorAddress
188189
);
189190

190191
// Option 2: Using a chosen job offering (e.g., from agent.browseAgents() from Agent Discovery Section)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async function buyer() {
6565

6666
const jobId = await chosenJobOffering.initiateJob(
6767
"Help me to generate a flower meme.",
68-
EVALUATOR_AGENT_WALLET_ADDRESS, // Use external evaluator address
68+
EVALUATOR_AGENT_WALLET_ADDRESS, // evaluator address
6969
new Date(Date.now() + 1000 * 60 * 3.1) // job expiry duration, minimum 3 minutes
7070
);
7171

examples/acp-base/polling-mode/buyer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ async function buyer() {
5757

5858
const jobId = await chosenJobOffering.initiateJob(
5959
{
60-
"<your_schema_key_1>": "<your_schema_value_1>",
61-
"<your_schema_key_2>": "<your_schema_value_2>",
60+
"<your-schema-key-1>": "<your-schema-value-1>",
61+
"<your-schema-key-2>": "<your-schema-value-2>",
6262
},
6363
EVALUATOR_AGENT_WALLET_ADDRESS, // evaluator address
6464
new Date(Date.now() + 1000 * 60 * 3.1) // job expiry duration, minimum 3 minutes

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ async function buyer() {
6666

6767
const jobId = await chosenJobOffering.initiateJob(
6868
{
69-
"<your_schema_key_1>": "<your_schema_value_1>",
70-
"<your_schema_key_2>": "<your_schema_value_2>",
69+
"<your-schema-key-1>": "<your-schema-value-1>",
70+
"<your-schema-key-2>": "<your-schema-value-2>",
7171
},
72-
undefined,
72+
undefined, // evaluator address, undefined fallback to empty address - skip-evaluation
7373
new Date(Date.now() + 1000 * 60 * 3.1) // job expiry duration, minimum 3 minutes
7474
);
7575

0 commit comments

Comments
 (0)