WikiArticleDraftRequest wiki.article-draft-request@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
- Version
- 1.0.0
- Owner
- wiki
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/wiki/article-draft-request.v1.json
wiki.article-draft-request@1: the body of the wiki writer on OpenVibe.Wiki (an editor of the space). POST /api/v1/pages/:id/draft runs OpenVibe.AI's content.wiki workflow — research with web search plus the sources the article already cites, a citation on every sentence, and an infobox from structured facts — and files the result as a pending wiki proposal. It never publishes: a person approves it in the review queue.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
instruction | string | null | What the editor wants written or improved. |
| |
choice | ai.choice | The model for the writer, from the same chip as every AI run. |
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: expand
{
"instruction": "Expand the setup section and keep every sentence sourced.",
"choice": {
"model": "openvibe/auto",
"source": "openvibe"
}
}Rejected: instruction-not-text
{
"instruction": 5
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('wiki.article-draft-request@1', value); // { valid, errors: [{ path, message }] }