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

Method to_dict

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

Source from the content-addressed store, hash-verified

90 return AbortRequest(reason)
91
92 def to_dict(self) -> dict:
93 result: dict = {}
94 if self.reason is not None:
95 result["reason"] = from_union([lambda x: to_enum(AbortReason, x), from_none], self.reason)
96 return result
97
98# Experimental: this type is part of an experimental API and may change or be removed.
99@dataclass

Callers

nothing calls this directly

Calls 2

from_unionFunction · 0.70
to_enumFunction · 0.70

Tested by

no test coverage detected