MCPcopy Create free account
hub / github.com/github/copilot-sdk / abort

Method abort

nodejs/src/session.ts:1336–1340  ·  view source on GitHub ↗

* Aborts the currently processing message in this session. * * Use this to cancel a long-running request. The session remains valid * and can continue to be used for new messages. * * @returns A promise that resolves when the abort request is acknowledged * @throws Erro

()

Source from the content-addressed store, hash-verified

1334 * ```
1335 */
1336 async abort(): Promise<void> {
1337 await this.connection.sendRequest("session.abort", {
1338 sessionId: this.sessionId,
1339 });
1340 }
1341
1342 /**
1343 * Change the model for this session.

Calls 1

sendRequestMethod · 0.45

Tested by

no test coverage detected