A reference to the UI completion resource.
API
interface UiCompletionResourceRef<Tools extends Chat.AnyTool> extends Resource<UiAssistantMessage<Tools> | null> {isReceiving: Signal <boolean>;isSending: Signal <boolean>;reload: () => boolean;stop: (clearStreamingMessage?: boolean) => void;}UiCompletionResourceRef
@typeToolsChat.AnyToolisReceiving
Signal<boolean>Indicates whether the underlying completion call is currently receiving data.
isSending
Signal<boolean>Indicates whether the underlying completion call is currently sending a request.
reload
() => booleanReloads the completion.
stop
(clearStreamingMessage?: boolean) => voidStops any currently streaming response.