← Về thư mục
harness/normalize.py
- _plain_event · function · L19-L22 — def _plain_event(event: EventEnvelope | Mapping[str, Any]) -> dict[str, Any]
- normalize_trace · function · L25-L113 — def normalize_trace( events: Iterable[EventEnvelope | Mapping[str, Any]], *, replacements: Mapping[str, str] | None = None, ) -> list[dict[str, Any]]
- normalized_id · function · L52-L62 — def normalized_id(field: str, value: Any) -> Any
- normalized_payload_uuid · function · L64-L70 — def normalized_payload_uuid(value: str) -> str: # Preserve cross-field identity: a run/turn/frame id echoed inside a # payload keeps the placeholder its envelope field already received.
- walk · function · L72-L104 — def walk(value: Any, field: str | None = None) -> Any
- normalized_trace_bytes · function · L116-L132 — def normalized_trace_bytes( events: Iterable[EventEnvelope | Mapping[str, Any]], *, replacements: Mapping[str, str] | None = None, ) -> bytes