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

Method to_dict

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

Source from the content-addressed store, hash-verified

9887 return DiscoveredCanvas(canvas_id, description, display_name, extension_id, actions, extension_name, input_schema)
9888
9889 def to_dict(self) -> dict:
9890 result: dict = {}
9891 result["canvasId"] = from_str(self.canvas_id)
9892 result["description"] = from_str(self.description)
9893 result["displayName"] = from_str(self.display_name)
9894 result["extensionId"] = from_str(self.extension_id)
9895 if self.actions is not None:
9896 result["actions"] = from_union([lambda x: from_list(lambda x: to_class(CanvasAction, x), x), from_none], self.actions)
9897 if self.extension_name is not None:
9898 result["extensionName"] = from_union([from_str, from_none], self.extension_name)
9899 if self.input_schema is not None:
9900 result["inputSchema"] = self.input_schema
9901 return result
9902
9903# Experimental: this type is part of an experimental API and may change or be removed.
9904@dataclass

Callers

nothing calls this directly

Calls 4

from_strFunction · 0.70
from_unionFunction · 0.70
from_listFunction · 0.70
to_classFunction · 0.70

Tested by

no test coverage detected