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

Method from_dict

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

Source from the content-addressed store, hash-verified

2877
2878 @staticmethod
2879 def from_dict(obj: Any) -> 'MCPAppsResourceContent':
2880 assert isinstance(obj, dict)
2881 uri = from_str(obj.get("uri"))
2882 meta = from_union([lambda x: from_dict(lambda x: x, x), from_none], obj.get("_meta"))
2883 blob = from_union([from_str, from_none], obj.get("blob"))
2884 mime_type = from_union([from_str, from_none], obj.get("mimeType"))
2885 text = from_union([from_str, from_none], obj.get("text"))
2886 return MCPAppsResourceContent(uri, meta, blob, mime_type, text)
2887
2888 def to_dict(self) -> dict:
2889 result: dict = {}

Callers

nothing calls this directly

Calls 5

from_strFunction · 0.70
from_unionFunction · 0.70
from_dictFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected