MCPcopy Index your code
hub / github.com/google/adk-python / from_log

Method from_log

tests/unittests/telemetry/functional_test_helpers.py:135–146  ·  view source on GitHub ↗
(cls, log: ReadableLogRecord)

Source from the content-addressed store, hash-verified

133
134 @classmethod
135 def from_log(cls, log: ReadableLogRecord) -> LogDigest:
136 attrs: dict[str, object] = {}
137 for k, v in (log.log_record.attributes or {}).items():
138 if k in NON_DETERMINISTIC_ATTRIBUTE_KEYS:
139 attrs[k] = PRESENT
140 else:
141 attrs[k] = _normalize(v)
142 return cls(
143 event_name=log.log_record.event_name or "",
144 body=_normalize(log.log_record.body),
145 attributes=attrs,
146 )
147
148
149@dataclass(frozen=True)

Callers 1

buildMethod · 0.80

Calls 2

_normalizeFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected