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

Method to_dict

python/copilot/client.py:873–883  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

871 )
872
873 def to_dict(self) -> dict:
874 result: dict = {}
875 result["sessionId"] = self.session_id
876 result["startTime"] = self.start_time.isoformat()
877 result["modifiedTime"] = self.modified_time.isoformat()
878 result["isRemote"] = self.is_remote
879 if self.summary is not None:
880 result["summary"] = self.summary
881 if self.context is not None:
882 result["context"] = self.context.to_dict()
883 return result
884
885
886def _parse_session_timestamp(value: Any) -> datetime:

Callers

nothing calls this directly

Calls 1

to_dictMethod · 0.45

Tested by

no test coverage detected