AiModelDirectoryList ai.model-directory-list@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
- Version
- 1.0.0
- Owner
- ai
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/ai/model-directory-list.v1.json
ai.model-directory-list@1: public model directory response; the list may include spotted, disabled and retired models.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
generated_at | string | |||
count | integer | yes |
| |
models | ai.model-directory-entry | yes |
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: two
{
"count": 2,
"models": [
{
"id": "google/gemini-preview",
"provider": "google",
"model": "gemini-preview",
"name": "Gemini Preview",
"status": "preview",
"routing_enabled": false
},
{
"id": "google/gemini-old",
"provider": "google",
"model": "gemini-old",
"name": "Gemini Old",
"status": "retired",
"routing_enabled": false
}
]
}Rejected: missing-count
{
"models": []
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('ai.model-directory-list@1', value); // { valid, errors: [{ path, message }] }