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

Method to_dict

python/copilot/generated/rpc.py:10260–10266  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10258 return EventsReadResult(cursor, cursor_status, events, has_more)
10259
10260 def to_dict(self) -> dict:
10261 result: dict = {}
10262 result["cursor"] = from_str(self.cursor)
10263 result["cursorStatus"] = to_enum(EventsCursorStatus, self.cursor_status)
10264 result["events"] = from_list(lambda x: to_class(SessionEvent, x), self.events)
10265 result["hasMore"] = from_bool(self.has_more)
10266 return result
10267
10268# Experimental: this type is part of an experimental API and may change or be removed.
10269@dataclass

Callers

nothing calls this directly

Calls 5

from_strFunction · 0.70
to_enumFunction · 0.70
from_listFunction · 0.70
to_classFunction · 0.70
from_boolFunction · 0.70

Tested by

no test coverage detected