MCPcopy Index your code
hub / github.com/github/copilot-sdk / registerAutoModeSwitchHandler

Method registerAutoModeSwitchHandler

nodejs/src/session.ts:933–935  ·  view source on GitHub ↗

* Registers the auto-mode-switch handler for this session. * * @param handler - The handler to invoke when the server dispatches an auto-mode-switch request * @internal This method is typically called internally when creating/resuming a session.

(handler?: AutoModeSwitchHandler)

Source from the content-addressed store, hash-verified

931 * @internal This method is typically called internally when creating/resuming a session.
932 */
933 registerAutoModeSwitchHandler(handler?: AutoModeSwitchHandler): void {
934 this.autoModeSwitchHandler = handler;
935 }
936
937 /**
938 * Handles an elicitation.requested broadcast event.

Callers 2

initializeSessionMethod · 0.95
resumeSessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected