File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,8 +183,9 @@ const relevantAgents = await acpClient.browseAgents(
183183const 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)
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments