@dataclass(frozen=True)classProbeResult:"""What an agent answered."""agent_id:strv2:bool"""Whether it negotiated ACP v2."""version:str"""The protocol version it answered (``"2"``, ``"1"``, ...) or ``""`` if it failed."""agent:str="""""Its name and version, as it reports them."""error:str="""""Why the test failed (it did not start, timed out, ...)."""time:float=0.0@propertydefsummary(self)->str:"""One line for the UI."""ifself.v2:returnf"speaks ACP v2 ({self.agent})"ifself.agentelse"speaks ACP v2"ifself.version:returnf"speaks ACP v{self.version}, not v2"returnf"test failed: {self.error}"