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

# actor.a2a-task-request@1 · OpenVibe.Services

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

# ActorA2ATaskRequest `actor.a2a-task-request@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: actor
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/actor/a2a-task-request.v1.json`](/docs/contracts/actor.a2a-task-request.json)

actor.a2a-task-request@1: POST /a2a/v1/tasks gives OpenVibe.Actor one A2A task (the Agent2Agent shape: a message with text parts, an optional skill and an optional id to continue). The caller is a Network service token with the capability actor.a2a.task acting for a person (X-OV-Subject); the task runs under that person's allowance and allow-list, exactly like a task they started. Answered 201 with the A2A task (actor.a2a-task-result@1).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `message` | object | yes |  |  |
| `message.role` | enum |  |  | - `one of "user"` |
| `message.parts` | array of object | yes |  | - `minItems 1`<br>- `maxItems 20` |
| `message.parts[].type` | enum | yes |  | - `one of "text"` |
| `message.parts[].text` | string |  |  | - `maxLength 8000` |
| `skillId` | string |  |  | - `maxLength 64` |
| `taskId` | string |  |  | - `maxLength 64` |

## Examples

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

 Valid: one

~~~~
{
  "message": {
    "role": "user",
    "parts": [
      {
        "type": "text",
        "text": "What is the weather in Paris?"
      }
    ]
  },
  "skillId": "answer"
}
~~~~

Rejected: bad-part

~~~~
{
  "message": {
    "role": "user",
    "parts": [
      {
        "type": "image",
        "text": "x"
      }
    ]
  }
}
~~~~

Rejected: no-message

~~~~
{
  "skillId": "answer"
}
~~~~

## Validate

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