Extract the answer from [ANSWER]...[/ANSWER] tags in the response.
(response: str)
| 27 | |
| 28 | |
| 29 | def extract_answer(response: str) -> str | None: |
| 30 | """Extract the answer from [ANSWER]...[/ANSWER] tags in the response.""" |
| 31 | match = _FLOAT_REGEX.search(response) |
| 32 | return match.group(1).strip() if match else None |
| 33 | |
| 34 | |
| 35 | def extract_mcq_answer(response: str) -> list[str]: |
no outgoing calls
no test coverage detected