ActorModelManageResult actor.model-manage-result@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/actor/model-manage-result.v1.json

actor.model-manage-result@1: what GET /api/v1/me/model answers, and what PUT /api/v1/me/model answers: { choice, provider, model, updated_at, keys }. choice is what you chose; provider is the provider your own key is for (or nothing); model is the model id you picked (or nothing); updated_at is when you last changed it; keys are the providers you hold a key for in OpenVibe.AI (names only, never key material), or null when OpenVibe.AI does not tell a service.

Fields

FieldTypeRequiredDescriptionConstraints
choiceenumyes
  • one of "auto", "openvibe", "own:openai", "own:anthropic", "own:deepseek", "own:google", "own:openrouter", "own:mistral"
providerenumyes
  • one of "openai", "anthropic", "deepseek", "google", "openrouter", "mistral", null
modelstring | nullyes
  • maxLength 120
updated_atstring | nullyesISO 8601, or nothing when you never changed it.
keysarray | nullyesThe providers you hold a key for, names only. Null when OpenVibe.AI does not tell a service.

Examples

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

Valid: default
{
  "choice": "auto",
  "provider": null,
  "model": null,
  "updated_at": null,
  "keys": null
}
Valid: own
{
  "choice": "own:openai",
  "provider": "openai",
  "model": "gpt-5.1",
  "updated_at": "2026-11-01T00:00:00.000Z",
  "keys": [
    "openai",
    "anthropic"
  ]
}
Rejected: without-keys
{
  "choice": "auto",
  "provider": null,
  "model": null,
  "updated_at": null
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('actor.model-manage-result@1', value);   // { valid, errors: [{ path, message }] }