ChatResponseStream

The ChatResponseStream is how a participant is able to return content to the chat view. It provides several methods for streaming different types of content which will be rendered in an appropriate way in the chat view. A participant can use the helper method for the type of content it wants to return, or it can instantiate a ChatResponsePart and use the generic ChatResponseStream.push method to return it.

Online Documentation

Functions

Link copied to clipboard
abstract fun anchor(value: JsAny, title: String = definedExternally)

Push an anchor part to this stream. Short-hand for push(new ChatResponseAnchorPart(value, title)). An anchor is an inline reference to some type of resource.

Link copied to clipboard
abstract fun button(command: Command)

Push a command button part to this stream. Short-hand for push(new ChatResponseCommandButtonPart(value, title)).

Link copied to clipboard
abstract fun filetree(value: ReadonlyArray<ChatResponseFileTree>, baseUri: Uri)

Push a filetree part to this stream. Short-hand for push(new ChatResponseFileTreePart(value)).

Link copied to clipboard
abstract fun markdown(value: JsAny)

Push a markdown part to this stream. Short-hand for push(new ChatResponseMarkdownPart(value)).

Link copied to clipboard
abstract fun progress(value: String)

Push a progress part to this stream. Short-hand for push(new ChatResponseProgressPart(value)).

Link copied to clipboard
abstract fun push(part: ChatResponsePart)

Pushes a part to this stream.

Link copied to clipboard
abstract fun reference(value: JsAny, iconPath: IconPath = definedExternally)

Push a reference to this stream. Short-hand for push(new ChatResponseReferencePart(value)).