MCPcopy Create free account
hub / github.com/TIGER-AI-Lab/TheoremExplainAgent / _print_response

Function _print_response

src/utils/utils.py:8–26  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

6 print("Warning: Missing pylatexenc, please do pip install pylatexenc")
7
8def _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
28def _extract_code(response_text: str) -> str:
29 """Extract code blocks from a text response.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected