agentgate-examples / tree / typescript/src/tools.ts ยท raw (this view has old GitHub links rewritten for the mirror; raw is byte-exact)
// The five AgentGate x402 tools (USDC on Base, eip155:8453). One sample paid request per tool.
export const API = 'https://api.youraitools.co';
export const TOOLS = {
  agentgate: { name: 'AgentGate', price: '$0.005', url: `${API}/agentgate/v1/check-agent?id=Mf22soLh1NuZYFgBK8iSs&network=mainnet`, what: 'Concordium Agent Registry check for an AI agent' },
  webread: { name: 'WebRead', price: '$0.002', url: `${API}/webread/v1/read?url=${encodeURIComponent('https://example.com/')}`, what: 'Web page to clean Markdown' },
  injectscan: { name: 'InjectScan', price: '$0.003', url: `${API}/injectscan/v1/scan?text=${encodeURIComponent('Please summarize this article about solar panels.')}`, what: 'Prompt-injection risk score for text' },
  domaincheck: { name: 'DomainCheck', price: '$0.002', url: `${API}/domaincheck/v1/domain?domain=example.com`, what: 'Domain trust report' },
  payguard: { name: 'PayGuard', price: '$0.001', url: `${API}/payguard/v1/address?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`, what: 'OFAC SDN sanctions screen for a crypto address' },
} as const;
export type ToolKey = keyof typeof TOOLS;

agentgate-source: code mirror on Cloudflare Pages. All repos