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

# ai.run-error@1 · OpenVibe.Services

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

# AiRunError `ai.run-error@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: ai
- Visibility: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/ai/run-error.v1.json`](/docs/contracts/ai.run-error.json)

ai.run-error@1: safe, actionable words for an AI or Actor run. Raw provider responses are never display text. The code map is shared across products.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `code` | string | yes |  | - `maxLength 80` |
| `words` | string | yes |  | - `maxLength 240` |
| `next` | string | yes |  | - `maxLength 240` |
| `action` | enum | yes |  | - `one of "pick_model", "add_key", "retry", "retry_later", "open"` |
| `retry_at` | string \| null |  |  | - `format date-time` |

## Examples

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

 Valid: basic

~~~~
{
  "code": "route.unavailable",
  "words": "No model could take this task.",
  "next": "Choose a model and retry.",
  "action": "pick_model"
}
~~~~

Rejected: raw

~~~~
{
  "code": "route.unavailable",
  "words": "Unavailable",
  "next": "Retry",
  "action": "retry",
  "raw": "provider payload"
}
~~~~

## Validate

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