Design kit command
board.voteResults
Voting results
Answers the voting session's state, your votes and, once ended, the ranked results.
- Kit
- Design 0.1.0 (.kdesign)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | string | no | read by the command beside its listed parameters |
voter | string | no |
Call through design_run
text
design_run {
"path": "<file>.kdesign",
"steps": [{ "command": "board.voteResults" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: id, voter. design_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
by | any | no | |
left | any | no | |
mine | any | no | |
on | any | no | |
results | any | no | |
state | any | no | |
voters | any | no | |
votesPerPerson | any | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"by": {},
"left": {},
"mine": {},
"on": {},
"results": {},
"state": {},
"voters": {},
"votesPerPerson": {}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"id": {
"description": "read by the command beside its listed parameters",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"voter": {
"type": "string"
}
},
"returns": "{state: off|running|ended, votesPerPerson, on, by, left (your votes left), mine [{id, votes}], voters, results? [{id, name, votes, rank}] (once ended, most votes first)}",
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.