Task reply
A task’s whole answer, with the tokens and AI units it used.
A task’s whole answer, from run(), with why it stopped and what it used.
{
"task": "summarise-note",
"model": "openai/gpt-oss-20b",
"text": "Kivuko kwenda Zanzibar kinaondoka saa moja asubuhi.",
"stopReason": "end",
"usage": { "inputTokens": 58, "outputTokens": 14, "units": 12 },
"requestId": "01m3c081dbf3j55x7hsa7wc1yj",
"processedIn": "Germany"
}Fields
taskstringThe task that ran.
modelstringThe model the task uses.
textstringThe answer. A reasoning model’s reasoning is left out.
jsonunknownFor a task with JSON answers, the answer parsed as JSON, matching the task’s schema.
undefinedfor other tasks.stopReasonstringWhy the model stopped:
endwhen it finished,max_tokenswhen it reached the task’s limit, orrefusedwhen it would not answer.usage.inputTokensnumberThe tokens the model read.
usage.outputTokensnumberThe tokens the model wrote.
usage.unitsnumberThe AI units the run used. See AI units.
requestIdstring or undefinedThe request’s ID, for support.
processedInstring or undefinedThe country the model ran in, such as
Germany.
json is unknown because a model can answer any JSON. Check its shape before you use it, such as with a zod schema.
Last updated