hashbrown

StructuredCompletionResourceRef

A reference to the structured completion resource.

StructuredCompletionResourceRef
@typeOutput
@typeState
generatingError
Signal<Error | undefined>

Error emitted during generation events.

isGenerating
Signal<boolean>

Indicates whether the completion is generating assistant output.

isLoading
Signal<boolean>

Aggregate loading flag across transport, generation, and tool calls.

isReceiving
Signal<boolean>

Indicates whether the underlying completion call is currently receiving tokens.

isResuming
Signal<boolean>

Whether the whole resumed interaction is executing.

isRunningToolCalls
Signal<boolean>

Indicates whether tool calls are running.

isSending
Signal<boolean>

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

pendingInterrupts
Signal<PendingInterruptBatch | undefined>

The current interrupt batch, retained until resume is acknowledged.

reload
() => boolean

Reloads the resource.

sendingError
Signal<Error | undefined>

Transport/request error before generation events arrive.

state
Signal<State | undefined>

The currently visible shared agent state.

stop
(clearStreamingMessage?: boolean) => void

Stops any currently-streaming message.