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

Method from_dict

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

Source from the content-addressed store, hash-verified

473
474 @staticmethod
475 def from_dict(obj: Any) -> StopError:
476 assert isinstance(obj, dict)
477 message = obj.get("message")
478 if message is None:
479 raise ValueError("Missing required field 'message' in StopError")
480 return StopError(str(message))
481
482 def to_dict(self) -> dict:
483 result: dict = {}

Calls 2

StopErrorClass · 0.85
getMethod · 0.45