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

Class HistoryTruncateResult

python/copilot/generated/rpc.py:2146–2161  ·  view source on GitHub ↗

Number of events that were removed by the truncation.

Source from the content-addressed store, hash-verified

2144# Experimental: this type is part of an experimental API and may change or be removed.
2145@dataclass
2146class HistoryTruncateResult:
2147 """Number of events that were removed by the truncation."""
2148
2149 events_removed: int
2150 """Number of events that were removed"""
2151
2152 @staticmethod
2153 def from_dict(obj: Any) -> 'HistoryTruncateResult':
2154 assert isinstance(obj, dict)
2155 events_removed = from_int(obj.get("eventsRemoved"))
2156 return HistoryTruncateResult(events_removed)
2157
2158 def to_dict(self) -> dict:
2159 result: dict = {}
2160 result["eventsRemoved"] = from_int(self.events_removed)
2161 return result
2162
2163class HMACAuthInfoType(Enum):
2164 HMAC = "hmac"

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…