- Commands are instructions your app sends to the model. They control what the model generates in real time.
- Messages are updates the model sends back to your app. They report state, signal events, or deliver data.
set_prompt command to change what it generates, and
respond with periodic state messages reporting the current frame number and active prompt.
Commands
A command is a named action with a payload.set_prompt; a model with camera controls might expose move or rotate. Command names, parameter
names, and types are all model-specific.
Commands can only be sent when the connection is in the
ready state.Replies and refusals
A command can answer with a reply, which the awaited call returns. A model can also refuse a command, for example when its queue is full. The refusal fails that call with a stablecode and a
message for your user, and reaches only the client that sent the command.
command_error message.