What agreement did the agent sign when he first showed you the house?

Legal subjectivity:

The house-viewing agreement is not an intermediary contract, but it may still have certain legal effect. House viewing agreement and intermediary contract are two different forms of contracts, with completely different contents and requirements and different obligations.

Legal objectivity:

Article 961 of the Civil Code of People's Republic of China (PRC) is a contract in which the intermediary reports the opportunity of concluding a contract to the client or provides media services for concluding a contract, and the client pays the remuneration.