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

Method to_dict

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

Source from the content-addressed store, hash-verified

9737 return AgentDiscoveryPath(path, preferred_for_creation, scope, project_path)
9738
9739 def to_dict(self) -> dict:
9740 result: dict = {}
9741 result["path"] = from_str(self.path)
9742 result["preferredForCreation"] = from_bool(self.preferred_for_creation)
9743 result["scope"] = to_enum(AgentDiscoveryPathScope, self.scope)
9744 if self.project_path is not None:
9745 result["projectPath"] = from_union([from_str, from_none], self.project_path)
9746 return result
9747
9748# Experimental: this type is part of an experimental API and may change or be removed.
9749@dataclass

Callers

nothing calls this directly

Calls 4

from_strFunction · 0.70
from_boolFunction · 0.70
to_enumFunction · 0.70
from_unionFunction · 0.70

Tested by

no test coverage detected