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

Class _ConnectResult

python/copilot/generated/rpc.py:1226–1251  ·  view source on GitHub ↗

Handshake result reporting the server's protocol version and package version on success.

Source from the content-addressed store, hash-verified

1224# Internal: this type is an internal SDK API and is not part of the public surface.
1225@dataclass
1226class _ConnectResult:
1227 """Handshake result reporting the server's protocol version and package version on success."""
1228
1229 ok: bool
1230 """Always true on success"""
1231
1232 protocol_version: int
1233 """Server protocol version number"""
1234
1235 version: str
1236 """Server package version"""
1237
1238 @staticmethod
1239 def from_dict(obj: Any) -> '_ConnectResult':
1240 assert isinstance(obj, dict)
1241 ok = from_bool(obj.get("ok"))
1242 protocol_version = from_int(obj.get("protocolVersion"))
1243 version = from_str(obj.get("version"))
1244 return _ConnectResult(ok, protocol_version, version)
1245
1246 def to_dict(self) -> dict:
1247 result: dict = {}
1248 result["ok"] = from_bool(self.ok)
1249 result["protocolVersion"] = from_int(self.protocol_version)
1250 result["version"] = from_str(self.version)
1251 return result
1252
1253# Experimental: this type is part of an experimental API and may change or be removed.
1254class ConnectedRemoteSessionMetadataKind(Enum):

Callers 1

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…