(interruption: Any)
| 133 | |
| 134 | |
| 135 | def format_tool_arguments(interruption: Any) -> str: |
| 136 | args = getattr(interruption, "arguments", None) |
| 137 | if args is None: |
| 138 | return "" |
| 139 | if isinstance(args, str): |
| 140 | return args |
| 141 | try: |
| 142 | return json.dumps(args) |
| 143 | except Exception: |
| 144 | return str(args) |
| 145 | |
| 146 | |
| 147 | async def prompt_yes_no(question: str) -> bool: |