{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "agengo attempt usage v1",
"description": "Optional top-level `usage` object an adapter may add next to its outcome. Every field is optional. agengo drops malformed fields instead of failing the attempt. input_tokens counts input that was not read from a prompt cache.",
"type": "object",
"properties": {
"input_tokens": {"type": "integer", "minimum": 0},
"output_tokens": {"type": "integer", "minimum": 0},
"cache_read_tokens": {"type": "integer", "minimum": 0},
"cache_write_tokens": {"type": "integer", "minimum": 0},
"cost_usd": {"type": "number", "minimum": 0},
"model": {"type": "string", "minLength": 1}
}
}