Skip to content

AuraTurnCancelledError

Thrown when an agent turn stopped before it finished — either the caller aborted the wait, or the server marked the reply partial. Distinct from AuraApiError: nothing failed, the turn just did not complete. Pair it with AuraClient.cancel to stop the turn server-side as well.

new AuraTurnCancelledError(
message,
partialContent?,
conversationId?): AuraTurnCancelledError;
Parameter Type
message string
partialContent? string
conversationId? string

AuraTurnCancelledError

AuraError.constructor

Property Modifier Type Description
conversationId readonly string | undefined The conversation the stopped turn belonged to — what to pass to cancel.
partialContent readonly string | undefined Whatever the agent produced before stopping; unset if it stopped before writing.