(context: BetaURLContext, url: str)
| 134 | |
| 135 | def test_a_hook_refusal_is_cut_to_the_field_limit_and_stays_the_cause() -> None: |
| 136 | def echo(context: BetaURLContext, url: str) -> None: |
| 137 | raise ToolError(f"blocked: {url}") |
| 138 | |
| 139 | def refuse(context: BetaConfirmContext) -> bool: |
| 140 | raise ToolError("declined: " + "c" * 5000) |