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

Class SessionSizes

python/copilot/generated/rpc.py:7125–7140  ·  view source on GitHub ↗

Map of sessionId -> on-disk size in bytes for each session's workspace directory.

Source from the content-addressed store, hash-verified

7123# Experimental: this type is part of an experimental API and may change or be removed.
7124@dataclass
7125class SessionSizes:
7126 """Map of sessionId -> on-disk size in bytes for each session's workspace directory."""
7127
7128 sizes: dict[str, int]
7129 """Map of sessionId -> on-disk size in bytes for the session's workspace directory"""
7130
7131 @staticmethod
7132 def from_dict(obj: Any) -> 'SessionSizes':
7133 assert isinstance(obj, dict)
7134 sizes = from_dict(from_int, obj.get("sizes"))
7135 return SessionSizes(sizes)
7136
7137 def to_dict(self) -> dict:
7138 result: dict = {}
7139 result["sizes"] = from_dict(from_int, self.sizes)
7140 return result
7141
7142# Experimental: this type is part of an experimental API and may change or be removed.
7143class SessionSource(Enum):

Callers 1

from_dictMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…