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

Method registerUserInputHandler

nodejs/src/session.ts:1119–1121  ·  view source on GitHub ↗

* Registers a user input handler for ask_user requests. * * When the agent needs input from the user (via ask_user tool), * this handler is called to provide the response. * * @param handler - The user input handler function, or undefined to remove the handler * @intern

(handler?: UserInputHandler)

Source from the content-addressed store, hash-verified

1117 * @internal This method is typically called internally when creating a session.
1118 */
1119 registerUserInputHandler(handler?: UserInputHandler): void {
1120 this.userInputHandler = handler;
1121 }
1122
1123 /**
1124 * Registers hook handlers for session lifecycle events.

Callers 2

initializeSessionMethod · 0.95
resumeSessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected