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

Method _send_error_response

python/copilot/_jsonrpc.py:466–478  ·  view source on GitHub ↗
(
        self, request_id: str, code: int, message: str, data: dict | None
    )

Source from the content-addressed store, hash-verified

464 await self._send_message(response)
465
466 async def _send_error_response(
467 self, request_id: str, code: int, message: str, data: dict | None
468 ):
469 response = {
470 "jsonrpc": "2.0",
471 "id": request_id,
472 "error": {
473 "code": code,
474 "message": message,
475 "data": data,
476 },
477 }
478 await self._send_message(response)

Callers 2

_handle_requestMethod · 0.95
_dispatch_requestMethod · 0.95

Calls 1

_send_messageMethod · 0.95

Tested by

no test coverage detected