hashbrown

UiCompletionResourceRef

A reference to the UI completion resource.

API

interface UiCompletionResourceRef<Tools extends Chat.AnyTool> extends Resource<UiAssistantMessage<Tools> | null>  {
}
UiCompletionResourceRef
@typeTools
Chat.AnyTool
isReceiving
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
() => boolean

Reloads the completion.

stop
(clearStreamingMessage?: boolean) => void

Stops any currently streaming response.