(self, line: str)
| 78 | raise ValueError(f'Unexpected function name {func}') |
| 79 | |
| 80 | async def handle_request(self, line: str): |
| 81 | result = await self._translator.translate(line) |
| 82 | if isinstance(result, Failure): |
| 83 | print(result.message) |
| 84 | else: |
| 85 | result = result.value |
| 86 | print(json.dumps(result, indent=2)) |
| 87 | |
| 88 | math_result = await evaluate_json_program(result, self._handle_json_program_call) |
| 89 | print(f"Math Result: {math_result}") |
| 90 | |
| 91 | |
| 92 | class MusicAgent: |
nothing calls this directly
no test coverage detected