Assert that execution info is valid and contains expected fields. Args: exec_info: Execution info dictionary
(exec_info: Dict[str, Any])
| 35 | |
| 36 | |
| 37 | def assert_execution_info_valid(exec_info: Dict[str, Any]): |
| 38 | """Assert that execution info is valid and contains expected fields. |
| 39 | |
| 40 | Args: |
| 41 | exec_info: Execution info dictionary |
| 42 | """ |
| 43 | assert exec_info is not None, "Execution info should not be None" |
| 44 | assert isinstance(exec_info, dict), "Execution info should be a dictionary" |
| 45 | |
| 46 | |
| 47 | def assert_response_time_acceptable(execution_time: float, max_time: float = 30.0): |
no outgoing calls