Skip to content
Developer Preview

model/cancel

Cancels the sending connection’s model/complete call, which settles cancelled; any other id answers {} and changes nothing.

Type: ModelCancelParams

model/cancel params: the commandId of the call to cancel, not a retry id of its own.

Field Type Stability Presence Description
commandId string required The call to cancel.
Source

schema/msp/experimental/msp.schema.json#/methods/model~2Fcancel

{
"description": "Cancels the sending connection's `model/complete` call, which settles `cancelled`; any other id answers `{}` and changes nothing.",
"params": {
"$ref": "#/$defs/ModelCancelParams"
},
"result": {
"$ref": "#/$defs/ModelCancelResult"
}
}