(tool_context: Any, default: str)
| 1752 | |
| 1753 | |
| 1754 | def _current_mode(tool_context: Any, default: str) -> str: |
| 1755 | if tool_context is None: |
| 1756 | return default |
| 1757 | pc = getattr(tool_context, "permission_context", None) |
| 1758 | return getattr(pc, "mode", default) if pc is not None else default |
| 1759 | |
| 1760 | |
| 1761 | def _set_mode(tool_context: Any, mode: str) -> None: |
no outgoing calls
no test coverage detected