hub_usage_add
Record agent-specific usage metrics like seconds, tokens, cost, and model for a task. These values are reported as supplied since the hub cannot observe them directly.
Instructions
Record what only YOU can see about a piece of work: seconds, tokens, cost, model. The hub cannot observe any of these, so they arrive here explicitly and are reported back as SUPPLIED, never mixed with what the hub measured itself. At least one number is required — an empty entry would record a $0 session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | ||
| agent | Yes | ||
| model | No | ||
| costUsd | No | ||
| project | No | ||
| seconds | No | ||
| tokensIn | No | ||
| tokensOut | No |