Skip to content
Developer Preview

ModelCompleteParams

model/complete params: the retry id, 1 to 32 messages (the first and the last user), an optional system text and the output bound. No session and no model: the host picks the model (ADR 90352 D3). The host answers an unknown field with invalidParams; the type itself accepts it.

  • commandId
  • maxTokens
  • messages
  • system
Source

schema/msp/experimental/msp.schema.json#/types/ModelCompleteParams

{
"description": "`model/complete` params: the retry id, 1 to 32\nmessages (the first and the last `user`), an optional system text and\nthe output bound. No session and no model: the host picks the model\n(ADR 90352 D3). The host answers an unknown field with `invalidParams`;\nthe type itself accepts it.",
"properties": {
"commandId": {
"description": "The client-minted UUIDv7 retry id (required).",
"type": "string"
},
"maxTokens": {
"description": "The most tokens the model may write.",
"maximum": 1024,
"minimum": 1,
"type": "integer"
},
"messages": {
"description": "What the model answers, oldest first.",
"items": {
"$ref": "#/$defs/ModelCompleteMessage"
},
"maxItems": 32,
"type": "array"
},
"system": {
"description": "The system text, when the caller sends one.",
"type": "string"
}
},
"required": [
"commandId",
"maxTokens",
"messages"
],
"type": "object"
}