<name>.v1
docs/capabilities/_template.md · wiki index
<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.
| kind | role | required | meaning |
|---|---|---|---|
| text | user | yes | the 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).
| name | type | default | meaning |
|---|---|---|---|
max_tokens | uint | the catalogue value | the output limit |
Channels out
One row for each channel that this capability can emit.
| channel | mime | payload |
|---|---|---|
| text | text/plain; charset=utf-8 | a UTF-8 fragment |
Terminal metadata
done.meta is vocabulary-defined. The core stores it and never reads it.
done without meta means {}.
| key | type | meaning |
|---|---|---|
finish_reason | string | why 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
- One rule for each invariant that a test can check.
- No number appears in this page unless it names the resource it protects.