She is probably just nervous and will likely eat tomorrow. Of course with any new puppy you should take it to the vet within a few days of getting it to make sure it is healthy and get possible shots if the breeder hasn't given them all. Puppies normally sleep a lot so I would not be too worried...