ActorSkillRunRequest actor.skill-run-request@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/skill-run-request.v1.json

actor.skill-run-request@1: POST /api/v1/runs starts a public prompt skill as this person, using normal task approvals and budget.

Fields

FieldTypeRequiredDescriptionConstraints
skillstringyes
  • minLength 1
  • maxLength 80
inputobject
choiceobject
  • no other fields
choice.modeenum
  • one of "cheapest", "balanced", "best", "fastest", "private"

Examples

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

Valid: basic
{
  "skill": "research-brief",
  "input": {
    "title": "Trip"
  },
  "choice": {
    "mode": "balanced"
  }
}
Rejected: mode
{
  "skill": "research-brief",
  "choice": {
    "mode": "surprise"
  }
}

Validate

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