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§
- Turn
Context - What the runtime knows about the turn that is running, or about the chat when no turn runs.
- Turn
Failure - Why one turn failed, and the facts that help to report it.
Enums§
- Failure
Category - 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-sdkpin in this crate’sCargo.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.