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

Method from_dict

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

Source from the content-addressed store, hash-verified

19805
19806 @staticmethod
19807 def from_dict(obj: Any) -> 'HandlePendingToolCallRequest':
19808 assert isinstance(obj, dict)
19809 request_id = from_str(obj.get("requestId"))
19810 error = from_union([from_str, from_none], obj.get("error"))
19811 result = from_union([ExternalToolTextResultForLlm.from_dict, from_str, from_none], obj.get("result"))
19812 return HandlePendingToolCallRequest(request_id, error, result)
19813
19814 def to_dict(self) -> dict:
19815 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