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

Method from_dict

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

Source from the content-addressed store, hash-verified

15788
15789 @staticmethod
15790 def from_dict(obj: Any) -> 'TaskShellInfo':
15791 assert isinstance(obj, dict)
15792 attachment_mode = TaskShellInfoAttachmentMode(obj.get("attachmentMode"))
15793 command = from_str(obj.get("command"))
15794 description = from_str(obj.get("description"))
15795 id = from_str(obj.get("id"))
15796 started_at = from_datetime(obj.get("startedAt"))
15797 status = TaskStatus(obj.get("status"))
15798 can_promote_to_background = from_union([from_bool, from_none], obj.get("canPromoteToBackground"))
15799 completed_at = from_union([from_datetime, from_none], obj.get("completedAt"))
15800 execution_mode = from_union([TaskExecutionMode, from_none], obj.get("executionMode"))
15801 log_path = from_union([from_str, from_none], obj.get("logPath"))
15802 pid = from_union([from_int, from_none], obj.get("pid"))
15803 return TaskShellInfo(attachment_mode, command, description, id, started_at, status, can_promote_to_background, completed_at, execution_mode, log_path, pid)
15804
15805 def to_dict(self) -> dict:
15806 result: dict = {}

Callers

nothing calls this directly

Calls 7

from_strFunction · 0.70
from_datetimeFunction · 0.70
TaskStatusClass · 0.70
from_unionFunction · 0.70
TaskShellInfoClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected