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
7 changes: 6 additions & 1 deletion examples/acp-base/external-evaluation/buyer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ async function buyer() {
const chosenJobOffering = chosenAgent.jobOfferings[0];

const jobId = await chosenJobOffering.initiateJob(
"Help me to generate a flower meme.",
// <your-schema-field> can be found in your ACP Visualiser's "Edit Service" pop-up.
// Reference: (./images/specify_requirement_toggle_switch.png)
{
"<your-schema-key-1>": "<your-schema-value-1>",
"<your-schema-key-2>": "<your-schema-value-2>",
},
EVALUATOR_AGENT_WALLET_ADDRESS, // evaluator address
new Date(Date.now() + 1000 * 60 * 3.1) // job expiry duration, minimum 3 minutes
);
Expand Down
2 changes: 2 additions & 0 deletions examples/acp-base/funds/prediction-market/buyer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const question = (prompt: string): Promise<string> => {
});
};

// <your-schema-field> can be found in your ACP Visualiser's "Edit Service" pop-up.
// Reference: (./images/specify_requirement_toggle_switch.png)
const SERVICE_REQUIREMENTS_JOB_TYPE_MAPPING: Record<string, PredictionMarketDemoJobPayload> = {
create_market: {
question: "Will ETH close above $3000 on Dec 31, 2025?",
Expand Down
2 changes: 2 additions & 0 deletions examples/acp-base/funds/trading/buyer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const question = (prompt: string): Promise<string> => {
});
};

// <your-schema-field> can be found in your ACP Visualiser's "Edit Service" pop-up.
// Reference: (./images/specify_requirement_toggle_switch.png)
const SERVICE_REQUIREMENTS_JOB_TYPE_MAPPING: Record<string, FundsJobDemoPayload> = {
swap_token: {
fromSymbol: "USDC",
Expand Down
2 changes: 2 additions & 0 deletions examples/acp-base/polling-mode/buyer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ async function buyer() {
);

const jobId = await chosenJobOffering.initiateJob(
// <your-schema-field> can be found in your ACP Visualiser's "Edit Service" pop-up.
// Reference: (./images/specify_requirement_toggle_switch.png)
{
"<your-schema-key-1>": "<your-schema-value-1>",
"<your-schema-key-2>": "<your-schema-value-2>",
Expand Down
2 changes: 2 additions & 0 deletions examples/acp-base/skip-evaluation/buyer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ async function buyer() {
const chosenJobOffering = chosenAgent.jobOfferings[0];

const jobId = await chosenJobOffering.initiateJob(
// <your-schema-field> can be found in your ACP Visualiser's "Edit Service" pop-up.
// Reference: (./images/specify_requirement_toggle_switch.png)
{
"<your-schema-key-1>": "<your-schema-value-1>",
"<your-schema-key-2>": "<your-schema-value-2>",
Expand Down