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

Method to_dict

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

Source from the content-addressed store, hash-verified

8025 return ShutdownRequest(reason, type)
8026
8027 def to_dict(self) -> dict:
8028 result: dict = {}
8029 if self.reason is not None:
8030 result["reason"] = from_union([from_str, from_none], self.reason)
8031 if self.type is not None:
8032 result["type"] = from_union([lambda x: to_enum(ShutdownType, x), from_none], self.type)
8033 return result
8034
8035# Experimental: this type is part of an experimental API and may change or be removed.
8036@dataclass

Callers

nothing calls this directly

Calls 2

from_unionFunction · 0.70
to_enumFunction · 0.70

Tested by

no test coverage detected