.f0rge/wiki/docs/capabilities/_template.md 1.5 KiB 71 lines Raw

<name>.v1

Status: v1. A published shape is frozen by spec.md section 20.1. Capability key: <name> Route: POST /<name>

Parts in

One row for each part kind that this capability accepts. A kind that is not in this table is invalid_part.

kindrolerequiredmeaning
textuseryesthe prompt

Parameters

The core never reads these. The plugin validates them against this table. A parameter that is not in this table is ignored, not an error (spec.md R26).

nametypedefaultmeaning
max_tokensuintthe catalogue valuethe output limit

Channels out

One row for each channel that this capability can emit.

channelmimepayload
texttext/plain; charset=utf-8a UTF-8 fragment

Terminal metadata

done.meta is vocabulary-defined. The core stores it and never reads it. done without meta means {}.

keytypemeaning
finish_reasonstringwhy the model stopped

Request

POST /<name>
{
  "model": "...",
  "input": [ {"kind": "text", "text": "..."} ],
  "params": {},
  "stream": false
}

Response, no stream

{"job": "019...", "outcome": "completed", "...": "the collected channels"}

Stream

event  ch=text    "..." 
event  ch=progress {"stage": "...", "pct": 0.5}
done   outcome=completed

Rules

  1. One rule for each invariant that a test can check.
  2. No number appears in this page unless it names the resource it protects.

view raw