Print formatted responses from the video generation process. Prints a formatted response with separators and headers for readability. Args: response_type (str): Type of response (e.g., 'Scene Plan', 'Implementation Plan') theorem_name (str): Name of the theorem being proces
(response_type: str, theorem_name: str, content: str, separator: str = "=" * 50)
| 6 | print("Warning: Missing pylatexenc, please do pip install pylatexenc") |
| 7 | |
| 8 | def _print_response(response_type: str, theorem_name: str, content: str, separator: str = "=" * 50) -> None: |
| 9 | """Print formatted responses from the video generation process. |
| 10 | |
| 11 | Prints a formatted response with separators and headers for readability. |
| 12 | |
| 13 | Args: |
| 14 | response_type (str): Type of response (e.g., 'Scene Plan', 'Implementation Plan') |
| 15 | theorem_name (str): Name of the theorem being processed |
| 16 | content (str): The content to print |
| 17 | separator (str, optional): Separator string for visual distinction. Defaults to 50 equals signs. |
| 18 | |
| 19 | Returns: |
| 20 | None |
| 21 | """ |
| 22 | print(f"\n{separator}") |
| 23 | print(f"{response_type} for {theorem_name}:") |
| 24 | print(f"{separator}\n") |
| 25 | print(content) |
| 26 | print(f"\n{separator}") |
| 27 | |
| 28 | def _extract_code(response_text: str) -> str: |
| 29 | """Extract code blocks from a text response. |
nothing calls this directly
no outgoing calls
no test coverage detected