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

Method from_dict

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

Source from the content-addressed store, hash-verified

11316
11317 @staticmethod
11318 def from_dict(obj: Any) -> 'LogRequest':
11319 assert isinstance(obj, dict)
11320 message = from_str(obj.get("message"))
11321 ephemeral = from_union([from_bool, from_none], obj.get("ephemeral"))
11322 level = from_union([SessionLogLevel, from_none], obj.get("level"))
11323 tip = from_union([from_str, from_none], obj.get("tip"))
11324 type = from_union([from_str, from_none], obj.get("type"))
11325 url = from_union([from_str, from_none], obj.get("url"))
11326 return LogRequest(message, ephemeral, level, tip, type, url)
11327
11328 def to_dict(self) -> dict:
11329 result: dict = {}

Callers

nothing calls this directly

Calls 4

from_strFunction · 0.70
from_unionFunction · 0.70
LogRequestClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected