AgentRun agent.run@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/run.v1.json
agent.run@1 snapshot of a run and its current plan, steps, sources, result, timestamps and cost.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | string | yes |
| |
product | string | yes |
| |
title | string | yes |
| |
status | enum | yes |
| |
plan | array of object | yes |
| |
plan[].title | string | yes |
| |
plan[].status | enum | yes |
| |
steps | https://openvibe.network/contracts/agent/run.v1.json#/$defs/step | yes | ||
sources | https://openvibe.network/contracts/agent/run.v1.json#/$defs/source | yes | ||
result | object | null | yes | ||
started_at | string | yes |
| |
ended_at | string | null | yes |
| |
cost_usd | number | null | yes |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: example
{
"id": "run_1",
"product": "codes",
"title": "Review repositories",
"status": "running",
"plan": [
{
"title": "Read repositories",
"status": "running"
}
],
"steps": [],
"sources": [],
"result": null,
"started_at": "2026-11-11T00:00:00Z",
"ended_at": null,
"cost_usd": null
}Rejected: example
{
"id": "run_1",
"product": "codes",
"title": "Review",
"status": "unknown",
"plan": [],
"steps": [],
"sources": [],
"result": null,
"started_at": "bad",
"ended_at": null,
"cost_usd": -1
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('agent.run@1', value); // { valid, errors: [{ path, message }] }