(cls, h: Union[List, Tuple, Dict])
| 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 | |
| 203 | def _filter_logs(record: dict) -> bool: |
nothing calls this directly
no outgoing calls
no test coverage detected