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

Method from_dict

python/copilot/generated/rpc.py:661–666  ·  view source on GitHub ↗
(obj: Any)

Source from the content-addressed store, hash-verified

659
660 @staticmethod
661 def from_dict(obj: Any) -> 'CanvasAction':
662 assert isinstance(obj, dict)
663 name = from_str(obj.get("name"))
664 description = from_union([from_str, from_none], obj.get("description"))
665 input_schema = obj.get("inputSchema")
666 return CanvasAction(name, description, input_schema)
667
668 def to_dict(self) -> dict:
669 result: dict = {}

Callers

nothing calls this directly

Calls 4

from_strFunction · 0.70
from_unionFunction · 0.70
CanvasActionClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected