complete_ai_task
Finish an AI task by submitting its nonce, token counts, duration, and output hash to validate usage and receive a signed, replay-resistant receipt.
Instructions
Use exactly once after begin_ai_task finishes meaningful work. Supply that session's nonce, non-negative inputTokens and outputTokens, whole-second durationSeconds, and a 32-byte outputHash; providerEvidence is optional and only for a configured provider key. It validates the nonce and bounded usage, derives the evidence tier, rejects replay, then writes the local receipt store and returns an Ed25519-signed receipt plus compact workReceiptId metadata. It does not publish a Merkle root, mint tokens, or submit a blockchain transaction. Use get_aipou_status to inspect recorded work; repeating a nonce or evidence fails closed instead of creating another receipt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | Unique 32-byte nonce returned by begin_ai_task for this exact task. | |
| outputHash | Yes | SHA-256-style 32-byte hash of the task output; never send the raw output. | |
| inputTokens | Yes | Non-negative input-token count for this task, capped at 10,000,000. | |
| outputTokens | Yes | Non-negative output-token count for this task, capped at 10,000,000. | |
| durationSeconds | Yes | Task duration in whole seconds from 0 through 86,400. | |
| providerEvidence | No | Optional provider-signed evidence. Omit it for a client-signed receipt. |