MCPcopy Create free account
hub / github.com/CoopReason/TESSY / judge_think_end_correct

Function judge_think_end_correct

utils.py:7–10  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

5import os
6
7def judge_think_end_correct(response):
8 if response.split('</think>')[0].endswith('\n') is False:
9 return False
10 return True
11
12def remove_triple_backticks(text: str) -> str:
13 lang_pattern = re.compile(r"```(?:python|cpp|java)(?:[\s\S]*?)(?:```|$)", re.IGNORECASE)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected