Skip to main content

Module failure

Module failure 

Source
Expand description

Why a Copilot turn failed, with the facts that help to report it. The runtime builds a TurnFailure from a session.error event, or when the Copilot runtime stops or stops answering, and the chat panel shows its title, its action and its details.

A failure never holds the prompt, attachment contents or a credential: the message passes through the crate’s token redaction, and the other fields are identifiers, counts and times.

Structs§

TurnContext
What the runtime knows about the turn that is running, or about the chat when no turn runs.
TurnFailure
Why one turn failed, and the facts that help to report it.

Enums§

FailureCategory
What kind of failure ended a turn, which decides what the chat tells the user to do.

Constants§

NOT_RESPONDING
What every running turn reports when the runtime stops answering.
SDK_VERSION
The Copilot SDK version Subspace is built with. Keep it equal to the github-copilot-sdk pin in this crate’s Cargo.toml; a test checks it.
SEND_FAILED
What a chat reports when the runtime could not take a message.
STREAM_CLOSED
What a chat reports when its event stream closes, which happens when the Copilot runtime process exits.

Functions§

categorize
The category of a session.error, from the fields the SDK sends: the error type first, then the remediation, then the HTTP status.