Process a cricket statistics JSON response and return formatted table. Args: json_response: JSON string from cricket statistics API Returns: Formatted string suitable for LLM summarization
(json_response: str)
| 327 | |
| 328 | # Convenience function |
| 329 | def process_cricket_query(json_response: str) -> str: |
| 330 | """ |
| 331 | Process a cricket statistics JSON response and return formatted table. |
| 332 | |
| 333 | Args: |
| 334 | json_response: JSON string from cricket statistics API |
| 335 | |
| 336 | Returns: |
| 337 | Formatted string suitable for LLM summarization |
| 338 | """ |
| 339 | converter = CricketStatsConverter() |
| 340 | return converter.process_cricket_response(json_response) |
| 341 | |
| 342 | |
| 343 | # Async function to query the cricket API |
no test coverage detected