You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(agentkit): Add PolicyCheck action provider for seller policy risk intelligence
Walletless action provider with two actions (policycheck_analyze,
policycheck_check_url) that call the PolicyCheck A2A API at
policycheck.tools. Returns risk levels, buyer protection scores,
key findings, and factual summaries.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* PolicyCheckActionProvider enables AI agents to verify e-commerce seller policies
20
-
* before making purchases. It analyzes return policies, shipping terms, warranty
21
-
* coverage, and terms of service to assess buyer protection and risk levels.
19
+
* PolicyCheckActionProvider provides seller policy risk intelligence for AI agents
20
+
* involved in e-commerce. It analyzes return policies, shipping terms, warranty
21
+
* coverage, and terms of service to produce risk data including risk level
22
+
* classifications, buyer protection scores, and key findings.
23
+
*
24
+
* The agent should use this data alongside other context (purchase amount, buyer
25
+
* risk tolerance, item category) to make its own purchase decisions.
22
26
*
23
27
* This is a walletless action provider — no wallet is required.
24
28
*/
@@ -36,29 +40,27 @@ export class PolicyCheckActionProvider extends ActionProvider {
36
40
}
37
41
38
42
/**
39
-
* Analyze seller policies to assess buyer protection before a purchase.
43
+
* Get seller policy risk data to inform purchase decisions.
40
44
*
41
45
* @param args - The input arguments (policyText and/or sellerUrl).
42
-
* @returns A string containing the risk assessment with score, findings, and recommendation.
46
+
* @returns A string containing the risk data with scores, findings, and factual summary.
43
47
*/
44
48
@CreateAction({
45
49
name: "policycheck_analyze",
46
-
description: `Analyze an e-commerce seller's policies to assess buyer protection risk BEFORE making a purchase. Returns a risk level (low/medium/high/critical), buyer protection score (0-100), key findings about return policy, shipping, warranty, and terms, and a recommendation on whether to proceed.
47
-
48
-
Use this action whenever an agent is about to complete a purchase from an online store. Provide either the full policy text or the seller's URL.
50
+
description: `Get seller policy risk data to inform purchase decisions. Analyzes return policies, shipping terms, warranty coverage, and terms of service. Returns risk level (low/medium/high/critical), buyer protection score (0-100), key findings about specific policy issues, and a factual summary. The agent should use this data alongside other context (purchase amount, buyer risk tolerance, item category) to make its own purchase decision.
49
51
50
52
Inputs:
51
53
- policyText: The full text of the seller's policy to analyze. Provide this OR sellerUrl.
52
54
- sellerUrl: The URL of the e-commerce store. The service will find and analyze policies automatically. Provide this OR policyText.
53
55
54
-
Example risk factors detected:
55
-
- No return policy or very short return windows
56
-
- Binding arbitration clauses that waive right to class action
analyzedUrl: args.sellerUrl||"direct text analysis",
143
144
});
144
145
}
@@ -172,9 +173,7 @@ Important: If the buyer protection score is below 50, recommend the user reconsi
172
173
*/
173
174
@CreateAction({
174
175
name: "policycheck_check_url",
175
-
description: `Quick check of an e-commerce seller's URL to assess buyer protection before purchasing. Provide the store URL and the service will find and analyze the seller's policies automatically. Returns risk level, buyer protection score, and key findings.
176
-
177
-
Use this as a fast pre-purchase verification step when you have a seller's URL.
176
+
description: `Quick seller policy risk check by URL. Provide the store URL and the service will find and analyze the seller's policies automatically. Returns risk level, buyer protection score, key findings, and a factual summary.
178
177
179
178
Inputs:
180
179
- sellerUrl: The URL of the e-commerce store to check (e.g., 'https://example-store.com').`,
0 commit comments