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

Class _ConnectRequest

python/copilot/generated/rpc.py:1205–1221  ·  view source on GitHub ↗

Optional connection token presented by the SDK client during the handshake.

Source from the content-addressed store, hash-verified

1203# Internal: this type is an internal SDK API and is not part of the public surface.
1204@dataclass
1205class _ConnectRequest:
1206 """Optional connection token presented by the SDK client during the handshake."""
1207
1208 token: str | None = None
1209 """Connection token; required when the server was started with COPILOT_CONNECTION_TOKEN"""
1210
1211 @staticmethod
1212 def from_dict(obj: Any) -> '_ConnectRequest':
1213 assert isinstance(obj, dict)
1214 token = from_union([from_str, from_none], obj.get("token"))
1215 return _ConnectRequest(token)
1216
1217 def to_dict(self) -> dict:
1218 result: dict = {}
1219 if self.token is not None:
1220 result["token"] = from_union([from_str, from_none], self.token)
1221 return result
1222
1223# Experimental: this type is part of an experimental API and may change or be removed.
1224# Internal: this type is an internal SDK API and is not part of the public surface.

Callers 2

from_dictMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…