hashbrown

UiCompletionResourceRef

A reference to the UI completion resource.

UiCompletionResourceRef
@typeTools
Chat.AnyTool
@typeState
isReceiving
Signal<boolean>

Indicates whether the underlying completion call is currently receiving data.

isResuming
Signal<boolean>

Whether the whole resumed interaction is executing.

isSending
Signal<boolean>

Indicates whether the underlying completion call is currently sending a request.

pendingInterrupts
Signal<PendingInterruptBatch | undefined>

The current interrupt batch, retained until resume is acknowledged.

reload
() => boolean

Reloads the completion.

state
Signal<State | undefined>

The currently visible shared agent state.

stop
(clearStreamingMessage?: boolean) => void

Stops any currently streaming response.