async def test_thinking_modes_work(self, mock_model_response):
        """Test that thinking modes are properly passed through."""
        tool = ChatTool()

        with patch.object(tool, "create_model") as mock_create_model:
            mock_model = MagicMock()
            mock_model.generate_content.return_value = mock_model_response()
            mock_create_model.return_value = mock_model

            result = await tool.execute({"prompt": "Test", "thinking_mode": "high", "temperature": 0.8})

            assert len(result) == 1
            output = json.loads(result[0].text)
            assert output["status"] == "success"

            # Verify create_model was called with correct parameters
            mock_create_model.assert_called_once()
            call_args = mock_create_model.call_args
            assert call_args[0][2] == "high"  # thinking_mode
            assert call_args[0][1] == 0.8  # temperature
Test that thinking modes are properly passed through.
tests/test_prompt_regression.py