taskhub_task_ai_usage_record
Record confirmed AI usage for a specific task, including token counts and provider details. Use when reporting actual usage from the client to track AI consumption per task.
Instructions
Record one provider-agnostic AI usage execution for a task. Usage must come from the reporting client; this tool never estimates tokens from task content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | AI model name | |
| reason | No | Human-readable usage reason | |
| source | No | Reporting client or source | |
| status | Yes | Usage reporting status | |
| taskId | Yes | Task UUID or systemCode (TSK-XXXXXX-XXXX) | |
| provider | No | AI provider name | |
| reasonCode | No | Reason code when usage is unavailable or partial | |
| executionId | No | Optional provider/client execution ID used for idempotency | |
| inputTokens | No | Confirmed input token count | |
| totalTokens | No | Confirmed total token count | |
| outputTokens | No | Confirmed output token count |