Streaming from a model
Since 0.1.0-alpha.22
The members for streaming from a model, and the types they use. Every member of
IzzyBlazor.Chat is on the Chat API.
Properties (1)
StatusChatStatus = ChatStatus.ReadyWhere the reply is. While it's Waiting or Streaming, Send becomes Stop and a message can't be sent.
Events (2)
OnSendEventCallback<ChatSendArgs>Called with what a person sent: the message typed, or a suggestion chosen.
Parts (1)
Components written inside Chat, and the columns' members, which PropertyColumn, TemplateColumn and DynamicColumn share.
ChatEntry
One message in a Chat: yours (Mine), or someone else's, with their name and avatar.
Pendingbool = falseWhether more is coming: dots until content arrives, then a caret after it.
Failedbool = falseWhether it failed: "Not sent" for yours, "Reply failed" for others, with Retry when OnRetry is set.
OnRetryEventCallbackCalled when a person chooses Retry on a failed entry.
Plus 4 common props.
Types (2)
ChatSendArgs
recordWhat a person sent in a Chat.
| Member | Description |
|---|---|
Text string | The message, as typed (or the suggestion chosen), trimmed. |
CanStream bool | Whether the reply can arrive in pieces: on an interactive page, and on a static page whose post came with script (with |
Files IReadOnlyList<IBrowserFile> | The files attached (with the chat's |
ChatStatus
enumWhere a Chat's reply is.
| Value | Description |
|---|---|
Ready | Nothing is on its way: Send sends. |
Waiting | A message was sent and no reply has started: Stop shows in Send's place. |
Streaming | A reply is arriving: Stop shows in Send's place. |
Failed | The last reply failed. Send sends again. |