---
title: "agent.run@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/agent.run"
updated: null
---

# agent.run@1 · OpenVibe.Services

HTML: [agent.run@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/agent.run)

# AgentRun `agent.run@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: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/agent/run.v1.json`](/docs/contracts/agent.run.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 |  | - `minLength 1`<br>- `maxLength 160` |
| `product` | string | yes |  | - `minLength 1`<br>- `maxLength 40` |
| `title` | string | yes |  | - `minLength 1`<br>- `maxLength 240` |
| `status` | enum | yes |  | - `one of "queued", "running", "waiting", "needs_you", "succeeded", "failed", "stopped", "cancelled"` |
| `plan` | array of object | yes |  | - `items: no other fields` |
| `plan[].title` | string | yes |  | - `minLength 1`<br>- `maxLength 240` |
| `plan[].status` | enum | yes |  | - `one of "todo", "running", "waiting", "needs_you", "done", "failed", "stopped"` |
| `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 |  | - `format date-time` |
| `ended_at` | string \| null | yes |  | - `format date-time` |
| `cost_usd` | number \| null | yes |  | - `minimum 0` |

## 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 }] }
~~~~
