AgentTaskResult agent.task-result@1

Generated at from openvibe-contracts v0.419.0 and openvibe-sdk v0.161.0.

Version
1.0.0
Owner
network
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/agent/task-result.v1.json

Asynchronous A2A task status and optional result.

Fields

FieldTypeRequiredDescriptionConstraints
idstringyes
  • pattern ^[a-z]{3}_[A-Za-z0-9_-]{8,80}$
threadstringyes
  • pattern ^[a-z]{3}_[A-Za-z0-9_-]{8,80}$
statusenumyes
  • one of "pending", "running", "completed", "failed", "cancelled"
resultobject
  • no other fields
result.roleenum
  • one of "user", "agent"
result.partsarray of objectyes
  • minItems 1
  • maxItems 20
  • items: no other fields
result.parts[].typeconstyes
  • = "text"
result.parts[].textstringyes
  • maxLength 8000
updated_atstringyes
  • format date-time
errorstring
  • maxLength 500

Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

Valid: example
{
  "id": "tsk_12345678",
  "thread": "thr_12345678",
  "status": "completed",
  "result": {
    "parts": [
      {
        "type": "text",
        "text": "Done"
      }
    ]
  },
  "updated_at": "2026-11-11T00:00:00Z"
}
Rejected: example
{}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('agent.task-result@1', value);   // { valid, errors: [{ path, message }] }