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

Method to_dict

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

Source from the content-addressed store, hash-verified

9773 return AgentRegistryLogCapture(enabled, open_error, open_error_reason, path)
9774
9775 def to_dict(self) -> dict:
9776 result: dict = {}
9777 result["enabled"] = from_bool(self.enabled)
9778 if self.open_error is not None:
9779 result["openError"] = from_union([from_str, from_none], self.open_error)
9780 if self.open_error_reason is not None:
9781 result["openErrorReason"] = from_union([lambda x: to_enum(AgentRegistryLogCaptureOpenErrorReason, x), from_none], self.open_error_reason)
9782 if self.path is not None:
9783 result["path"] = from_union([from_str, from_none], self.path)
9784 return result
9785
9786# Experimental: this type is part of an experimental API and may change or be removed.
9787@dataclass

Callers

nothing calls this directly

Calls 3

from_boolFunction · 0.70
from_unionFunction · 0.70
to_enumFunction · 0.70

Tested by

no test coverage detected