(tool: Tool, kwargs: dict)
| 21 | |
| 22 | |
| 23 | def _current_action(tool: Tool, kwargs: dict) -> str: |
| 24 | return ( |
| 25 | str( |
| 26 | kwargs.get("action") |
| 27 | or tool.args.get("action") |
| 28 | or "" |
| 29 | ) |
| 30 | .strip() |
| 31 | .lower() |
| 32 | .replace("-", "_") |
| 33 | ) |
| 34 | |
| 35 | |
| 36 | def _normalize_timezone(value: Any) -> str | None: |