{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://humonix.com/schemas/result/v1.json","title":"Humonix result","type":"object","required":["object","id","outcome","summary","evidence","value","cost","next"],"properties":{"object":{"const":"result"},"id":{"type":"string","description":"The result id (the A2A task id when it came from A2A)."},"outcome":{"enum":["done","needs_approval","needs_human","failed"],"description":"done: the result exists. needs_approval: a draft waits for a person’s yes. needs_human: a person must do or write it. failed: it could not be done (or was canceled)."},"summary":{"type":"string","description":"One or two sentences for a person."},"evidence":{"type":"array","items":{"type":"object","required":["kind","ref"],"properties":{"kind":{"type":"string"},"ref":{"type":"string"},"title":{"type":"string"},"href":{"type":"string"}}},"description":"The records it rests on, with links into the app."},"value":{"type":"object","additionalProperties":{"type":["number","string","boolean"]},"description":"What it was worth, in counts and money: e.g. amount_chased (reminders emailed from the company’s mailbox), amount_approved, reminders_approved, quotes_approved, quote_total, meetings_booked, jobs_scheduled, requests_resolved; currency when money."},"cost":{"type":"object","properties":{"tokens_in":{"type":"integer"},"tokens_out":{"type":"integer"},"usd_list":{"type":"number"},"basis":{"type":"string"}},"description":"What it cost to produce, at the provider’s list price, no markup. Not charged per result today."},"next":{"type":["object","null"],"properties":{"who":{"type":"string"},"action":{"type":"string"},"where":{"type":"string"},"url":{"type":"string"}},"description":"Who must act next, and where; null when done."},"skill":{"type":"string"},"tool":{"type":["string","null"]},"via":{"enum":["a2a","mcp","api"]},"resource":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"data":{"description":"The tool’s own structured answer, when there is one."}}}