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

# ai.task@1 · OpenVibe.Services

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

# AiTaskV1 `ai.task@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
- Decision: [ADR-001](/docs/adr/ADR-001)
- Schema: [`https://openvibe.network/contracts/ai/task.v1.json`](/docs/contracts/ai.task.json)

A named piece of AI work in OpenVibe.AI's catalogue: the service that registered it, its kind (text, code, vision, image or search), one sentence saying what it does, the built-in default choice and the workflow that runs it. Services register their own namespace with POST /api/v1/tasks; the catalogue lists every task at GET /api/v1/tasks.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `name` | string | yes |  | - `pattern ^[a-z][a-z0-9_-]*\.[a-z0-9_.-]{1,100}$` |
| `kind` | enum | yes |  | - `one of "text", "code", "vision", "image", "search"` |
| `sentence` | string | yes |  | - `minLength 1`<br>- `maxLength 300` |
| `default` | [ai.choice](/docs/contracts/ai.choice) | yes |  |  |
| `service` | string |  |  |  |
| `workflow` | string |  |  |  |

## Examples

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

 Valid: basic

~~~~
{
  "name": "design.icon",
  "kind": "code",
  "sentence": "Draw an SVG icon.",
  "default": {
    "model": "openvibe/cheapest",
    "source": "openvibe"
  }
}
~~~~

Rejected: basic

~~~~
{
  "name": "design.icon",
  "kind": "other",
  "sentence": "Draw.",
  "default": {
    "model": "auto",
    "source": "openvibe"
  }
}
~~~~

## Validate

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