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

Method from_dict

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

Source from the content-addressed store, hash-verified

21987
21988 @staticmethod
21989 def from_dict(obj: Any) -> 'ModelSwitchToRequest':
21990 assert isinstance(obj, dict)
21991 model_id = from_str(obj.get("modelId"))
21992 context_tier = from_union([ContextTier, from_none], obj.get("contextTier"))
21993 model_capabilities = from_union([ModelCapabilitiesOverride.from_dict, from_none], obj.get("modelCapabilities"))
21994 reasoning_effort = from_union([from_str, from_none], obj.get("reasoningEffort"))
21995 reasoning_summary = from_union([ReasoningSummary, from_none], obj.get("reasoningSummary"))
21996 return ModelSwitchToRequest(model_id, context_tier, model_capabilities, reasoning_effort, reasoning_summary)
21997
21998 def to_dict(self) -> dict:
21999 result: dict = {}

Callers

nothing calls this directly

Calls 4

from_strFunction · 0.70
from_unionFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected