MCPcopy Create free account
hub / github.com/Emmimal/control-layer / to_dict

Method to_dict

control_layer.py:175–186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

173 strategy: RetryStrategy = RetryStrategy.NONE
174
175 def to_dict(self) -> dict:
176 return {
177 "audit_id": self.audit_id,
178 "timestamp": self.timestamp,
179 "prompt_hash": self.prompt_hash,
180 "attempt": self.attempt,
181 "failure_mode": self.failure_mode.value,
182 "latency_ms": round(self.latency_ms, 3),
183 "token_count": self.token_count,
184 "passed": self.passed,
185 "strategy": self.strategy.value,
186 }
187
188
189@dataclass

Callers 1

logMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected