Map of sessionId -> on-disk size in bytes for each session's workspace directory.
| 7123 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 7124 | @dataclass |
| 7125 | class 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. |
| 7143 | class SessionSource(Enum): |
no outgoing calls
no test coverage detected
searching dependent graphs…