---
title: "agent.task-result@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/agent.task-result"
updated: null
---

# agent.task-result@1 · OpenVibe.Services

HTML: [agent.task-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/agent.task-result)

# AgentTaskResult `agent.task-result@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/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`](/docs/contracts/agent.task-result.json)

Asynchronous A2A task status and optional result.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes |  | - `pattern ^[a-z]{3}_[A-Za-z0-9_-]{8,80}$` |
| `thread` | string | yes |  | - `pattern ^[a-z]{3}_[A-Za-z0-9_-]{8,80}$` |
| `status` | enum | yes |  | - `one of "pending", "running", "completed", "failed", "cancelled"` |
| `result` | object |  |  | - `no other fields` |
| `result.role` | enum |  |  | - `one of "user", "agent"` |
| `result.parts` | array of object | yes |  | - `minItems 1`<br>- `maxItems 20`<br>- `items: no other fields` |
| `result.parts[].type` | const | yes |  | - `= "text"` |
| `result.parts[].text` | string | yes |  | - `maxLength 8000` |
| `updated_at` | string | yes |  | - `format date-time` |
| `error` | string |  |  | - `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 }] }
~~~~
