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

Method _register_elicitation_handler

python/copilot/session.py:2303–2311  ·  view source on GitHub ↗

Register the elicitation handler for this session. Args: handler: The handler to invoke when the server dispatches an elicitation request, or None to remove the handler.

(self, handler: ElicitationHandler | None)

Source from the content-addressed store, hash-verified

2301 self._client_session_apis.provider_token = _BearerTokenProviderAdapter(self)
2302
2303 def _register_elicitation_handler(self, handler: ElicitationHandler | None) -> None:
2304 """Register the elicitation handler for this session.
2305
2306 Args:
2307 handler: The handler to invoke when the server dispatches an
2308 elicitation request, or None to remove the handler.
2309 """
2310 with self._elicitation_handler_lock:
2311 self._elicitation_handler = handler
2312
2313 def _register_mcp_auth_handler(self, handler: McpAuthHandler | None) -> None:
2314 """Register the MCP auth handler for this session."""

Callers 2

_initialize_sessionMethod · 0.95
resume_sessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected