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

Method to_dict

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

Source from the content-addressed store, hash-verified

2886 return MCPAppsResourceContent(uri, meta, blob, mime_type, text)
2887
2888 def to_dict(self) -> dict:
2889 result: dict = {}
2890 result["uri"] = from_str(self.uri)
2891 if self.meta is not None:
2892 result["_meta"] = from_union([lambda x: from_dict(lambda x: x, x), from_none], self.meta)
2893 if self.blob is not None:
2894 result["blob"] = from_union([from_str, from_none], self.blob)
2895 if self.mime_type is not None:
2896 result["mimeType"] = from_union([from_str, from_none], self.mime_type)
2897 if self.text is not None:
2898 result["text"] = from_union([from_str, from_none], self.text)
2899 return result
2900
2901# Experimental: this type is part of an experimental API and may change or be removed.
2902@dataclass

Callers

nothing calls this directly

Calls 3

from_strFunction · 0.70
from_unionFunction · 0.70
from_dictFunction · 0.70

Tested by

no test coverage detected