In the state of Pennsylvania, you will be required to sign a document called a consumer notice when you are discussing real estate with a licensed real estate agent. It is one of the documents that is required to be signed when you make and offer and when you list your home in Pennsylvania. You will also be presented with this document prior to one of those situations if you are actively discussing real estate. I always present this to my buyers when showing them a home for the first time.
Part of what this Notice discusses what kind of representation you have as a consumer. If you are working with an agent whether it be as a buyer or a seller, they are to keep your information confidential, their loyalties are to be to you, and they are to negotiate on your behalf and best interests.