AgentTask agent.task@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.v1.json
A2A task with agent, person, thread and text parts limited to 8000 characters.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | string |
| ||
to | string | yes |
| |
from | string | yes |
| |
on_behalf_of | string | yes |
| |
thread | string | yes |
| |
message | object | yes |
| |
message.role | enum |
| ||
message.parts | array of object | yes |
| |
message.parts[].type | const | yes |
| |
message.parts[].text | string | yes |
| |
skillId | string |
| ||
created_at | string |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: example
{
"to": "agt_BBBBBBBBBBBBBBBBBBBBBBBBBB",
"from": "agt_AAAAAAAAAAAAAAAAAAAAAAAAAA",
"on_behalf_of": "usr_AAAAAAAAAAAAAAAAAAAAAAAAAA",
"thread": "thr_12345678",
"message": {
"role": "user",
"parts": [
{
"type": "text",
"text": "Hello"
}
]
}
}Rejected: example
{}Validate
const contracts = require('openvibe-contracts');
contracts.validate('agent.task@1', value); // { valid, errors: [{ path, message }] }