A primary source is an original document or firsthand account from the time period being studied. In this case, the best example of a primary source related to Siam's resistance to imperialism is:
a letter from the king of Siam in the 1850s asking about rice sales to Great Britain.
This letter would provide direct insight into the thoughts and actions of the king during that period, making it a primary source.