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

Method from_dict

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

Source from the content-addressed store, hash-verified

2751
2752 @staticmethod
2753 def from_dict(obj: Any) -> 'MCPAppsDiagnoseServer':
2754 assert isinstance(obj, dict)
2755 connected = from_bool(obj.get("connected"))
2756 sample_tool_names = from_list(from_str, obj.get("sampleToolNames"))
2757 tool_count = from_float(obj.get("toolCount"))
2758 tools_with_ui_meta = from_float(obj.get("toolsWithUiMeta"))
2759 return MCPAppsDiagnoseServer(connected, sample_tool_names, tool_count, tools_with_ui_meta)
2760
2761 def to_dict(self) -> dict:
2762 result: dict = {}

Callers

nothing calls this directly

Calls 5

from_boolFunction · 0.70
from_listFunction · 0.70
from_floatFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected