(response: str)
| 72 | |
| 73 | |
| 74 | def convert_response_to_json(response: str) -> dict: |
| 75 | json_str = locate_json_string_body_from_string(response) |
| 76 | assert json_str is not None, f"Unable to parse JSON from response: {response}" |
| 77 | try: |
| 78 | data = json.loads(json_str) |
| 79 | return data |
| 80 | except json.JSONDecodeError as e: |
| 81 | logger.error(f"Failed to parse JSON: {json_str}") |
| 82 | raise e from None |
| 83 | |
| 84 | |
| 85 | def compute_args_hash(*args): |
nothing calls this directly
no test coverage detected