AgentAttention agent.attention@1

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

Version
1.0.0
Owner
actor
Visibility
public
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/agent/attention.v1.json

One structured question awaiting a person. Authorized independent work may continue.

Fields

FieldTypeRequiredDescriptionConstraints
idstringyes
  • minLength 1
ticket_idstringyes
  • minLength 1
questionstringyes
  • minLength 1
stateenumyes
  • one of "open", "answered", "dismissed"
created_atstringyes
  • format date-time
answerstring
  • minLength 1

Examples

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

Valid: example
{
  "id": "att_1",
  "ticket_id": "tkt_1",
  "question": "Which target?",
  "state": "open",
  "created_at": "2026-11-09T12:00:00Z"
}
Rejected: unknown
{
  "id": "att_1",
  "ticket_id": "tkt_1",
  "question": "Which target?",
  "state": "open",
  "created_at": "2026-11-09T12:00:00Z",
  "unexpected": true
}

Validate

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