Children and adolescents' internal models of food-sharing behavior include complex evaluations of contextual factors.