{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"A task returned by the API. lease_token is included only in lease-owner responses.","properties":{"attempts":{"minimum":0,"type":"integer"},"communication_type":{"enum":["ASSIGNMENT","REQUEST_INFO","RESPONSE","FEEDBACK","ESCALATION","BROADCAST"],"type":"string"},"conversation_id":{"minLength":1,"type":"string"},"created_at":{"format":"date-time","type":"string"},"description":{"minLength":1,"type":"string"},"error":{"type":["string","null"]},"lease_expires_at":{"format":"date-time","type":["string","null"]},"lease_token":{"minLength":1,"type":"string"},"parent_task_id":{"type":["string","null"]},"payload":{"additionalProperties":true,"type":"object"},"protocol_version":{"minLength":1,"type":"string"},"recipient":{"minLength":1,"type":"string"},"response_to":{"type":["string","null"]},"result":{"additionalProperties":true,"type":["object","null"]},"sender":{"minLength":1,"type":"string"},"status":{"enum":["READY","LEASED","DONE","FAILED"],"type":"string"},"task_id":{"minLength":1,"type":"string"},"task_type":{"minLength":1,"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["protocol_version","task_id","sender","recipient","description","task_type","conversation_id","parent_task_id","response_to","error","created_at","updated_at","lease_expires_at","communication_type","status","payload","result","attempts"],"title":"Agent task","type":"object"}
