MCPcopy
hub / github.com/MAA1999/M9A / from_dict

Method from_dict

agent/utils/pienv.py:79–86  ·  view source on GitHub ↗
(cls, data: Any)

Source from the content-addressed store, hash-verified

77
78 @classmethod
79 def from_dict(cls, data: Any) -> "MacOSConfig | None":
80 if not isinstance(data, dict):
81 return None
82 return cls(
83 title_regex=_as_string(data.get("title_regex")),
84 screencap=_as_string(data.get("screencap")),
85 input=_as_string(data.get("input")),
86 )
87
88
89@dataclass(frozen=True)

Callers

nothing calls this directly

Calls 1

_as_stringFunction · 0.85

Tested by

no test coverage detected