MCPcopy Create free account
hub / github.com/Spinachead/arg / from_data

Method from_data

app/utils.py:194–200  ·  view source on GitHub ↗
(cls, h: Union[List, Tuple, Dict])

Source from the content-addressed store, hash-verified

192
193 @classmethod
194 def from_data(cls, h: Union[List, Tuple, Dict]) -> "History":
195 if isinstance(h, (list, tuple)) and len(h) >= 2:
196 h = cls(role=h[0], content=h[1])
197 elif isinstance(h, dict):
198 h = cls(**h)
199
200 return h
201
202
203def _filter_logs(record: dict) -> bool:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected