{"uid":"cap_ozD4dmKrX76pBB6feRF49","slug":"taifoon-coordination-layer-chat-word-count-edge-call-c501ecd2","name":"Taifoon Coordination Layer – chat.word_count Edge Call","description":"One API over the coordination layer: the root that commits every chain, proofs that a transaction happened, what every route costs, the transfers, and the agent-hiring lifecycle. Most operations are public reads. Writes say who may make them in `security` (RelayerKey = X-API-Key, OperatorToken = x-operator-token) and in x-taifoon-auth.rule; nothing here signs or sends a transaction for you. A 2xx JSON object answered to a caller that sent no key also carries `get_key` (and the headers x-taifoon-get-key and Link rel=free-key): how to get a free key in one call; proofs, evidence packs, cards and this document are left as written. Lineage language: a sale walks offer in → classify → listed → hired → delivered → graded → settled → legs written → accrued → split → PAID → recorded; a venue adapter has offer.in · offer.out · job.in · job.out; the seller of record pays on by forward · share · period · markup; a leg is Owed → Reserved → Sent | Held | Refunded; a hop reads OK · HELD · MISSING · BROKEN. On the wire the hop ids are the event field step and the metric label stage; a wire name is never renamed.","url":"https://coord.taifoon.dev/v1/exchanges/edge_19713f3d01fdd217/call?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"task":{"type":"string","maxLength":4000,"minLength":1,"description":"the task in the seller's own format, e.g. chat.word_count: Count the words in: \"taifoon class probe b9619773 counts these words\" (reply with the number of words)"},"class":{"type":"string","const":"chat.word_count"}}},"responseSchema":{"type":"json","example":{"ok":true,"edge_id":"edge_19713f3d01fdd217","delivery":{"status":"ready","handshake_id":"hs_…","reply_digest":"0x…"},"meter_line":{"paid":{"by":"x402","units":"60000"},"edge_state":"quoted","agreement_basis":"house_unsigned"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.06","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.06/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XQTtM2w0mjc9F9Xr2ZGHA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.06","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Submits a word-count chat task to a specific Taifoon coordination edge and returns a structured delivery result with proof of execution","exampleAgentPrompt":"Count the words in this text using the Taifoon coordination layer and give me the result with a verified receipt: 'The quick brown fox jumps over the lazy dog near the riverbank at dawn.'","exampleUseCases":[{"title":"Verifiable word count for contract text","prompt":"Count the words in this contract clause and give me a cryptographic proof of the result: 'The vendor shall deliver all goods within thirty calendar days of the signed purchase order date, subject to force majeure provisions.'"},{"title":"Metered word count in automated pipeline","prompt":"Run a chat.word_count task on this user submission through Taifoon and return the word count along with the handshake ID so I can log it: 'Artificial intelligence is transforming how businesses operate across every major industry sector worldwide.'"},{"title":"Audit-ready word count with delivery status","prompt":"Send this paragraph to the Taifoon edge for a word count and tell me the edge state and reply digest so I can verify it was processed: 'Climate change poses significant risks to coastal infrastructure, agricultural output, and global supply chains over the coming decades.'"}],"resultDescription":"A JSON object containing: ok (boolean), edge_id, delivery object with status ('ready'), handshake_id, and reply_digest (cryptographic hash of the result), plus a meter_line showing payment details (amount paid in units, by x402), edge_state, and agreement_basis. The actual word count answer is contained within the delivery payload.","failureModes":["Missing or invalid X-API-Key or x-operator-token returns an auth error; the response includes a get_key field explaining how to obtain a free key","Malformed task string or wrong class value (not 'chat.word_count') returns a validation error","Payment failure via x402 protocol results in a 402 response with payment instructions","Edge unavailable or coordinator unreachable returns a 5xx error","Task text exceeding 4000 characters is rejected with a schema validation error","Empty or missing task field returns a 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need a metered, verifiable word count with a cryptographic proof of execution (reply_digest + handshake_id) rather than a plain local word count. It is appropriate when audit trails, tamper-evidence, or integration into the Taifoon agent-hiring and settlement lifecycle are required. Not suitable if you simply need a free, local word count without payment or provenance tracking.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:51:51.540Z","isFirstParty":false,"canonicalSlug":"taifoon-coordination-layer-chat-word-count-edge-call-c501ecd2"}