MCPcopy Create free account
hub / github.com/github/copilot-sdk / from_dict

Method from_dict

python/copilot/client.py:632–636  ·  view source on GitHub ↗
(obj: Any)

Source from the content-addressed store, hash-verified

630
631 @staticmethod
632 def from_dict(obj: Any) -> ModelSupports:
633 assert isinstance(obj, dict)
634 vision = obj.get("vision", False)
635 reasoning_effort = obj.get("reasoningEffort", False)
636 return ModelSupports(vision=bool(vision), reasoning_effort=bool(reasoning_effort))
637
638 def to_dict(self) -> dict:
639 result: dict = {}

Callers

nothing calls this directly

Calls 2

ModelSupportsClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected