ActorAgentSheet actor.agent-sheet@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/actor/agent-sheet.v1.json
actor.agent-sheet@1: one owner-scoped read of an Actor agent's current work, history, approvals, computer, schedules and memory. GET /api/v1/me/agents/:id?view=sheet; never cache this answer.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
agent | object | yes | ||
agent.id | string | yes |
| |
agent.name | string | yes | ||
agent.face | string | null | yes | ||
agent.state | enum | yes |
| |
agent.instructions | string | yes | ||
agent.voice | string | null | yes | ||
now | one of | yes | ||
work | https://openvibe.network/contracts/actor/agent-sheet.v1.json#/$defs/work | yes | ||
asks | array of object | yes | ||
asks[].id | string | yes | ||
asks[].state | string | yes | ||
asks[].what | string | yes | ||
asks[].why | string | null | |||
asks[].touch | string | object | null | |||
asks_empty | string | null | yes | ||
computer | one of | yes | ||
schedules | array of object | yes | ||
schedules[].next_run_at | string | null | |||
schedules[].last_run_at | string | null | |||
schedules[].last_result | string | null | |||
memory | array of object | yes | ||
memory[].id | string | yes | ||
memory[].text | string | yes | ||
memory[].source | string | |||
activity | array of object | yes |
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: idle
{
"agent": {
"id": "agt_00000000000000000000000000",
"name": "Helper",
"face": null,
"state": "idle",
"instructions": "Help with alerts",
"voice": null
},
"now": null,
"work": [],
"asks": [],
"asks_empty": "Requests to approve or decline will appear here.",
"computer": null,
"schedules": [
{
"schedule": "off",
"next_run_at": null,
"last_run_at": null,
"last_result": null
}
],
"memory": [],
"activity": []
}Rejected: missing-agent
{
"now": null,
"work": [],
"asks": [],
"asks_empty": null,
"computer": null,
"schedules": [],
"memory": [],
"activity": []
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('actor.agent-sheet@1', value); // { valid, errors: [{ path, message }] }