You are standing way too close to your Castor Bean!
What you are looking at is nectar produced by extra-floral (outside the flower) nectar glands. This nectar attracts ants, which in turn help in seed dispersal and defense.
Do you have ants? You won't necessarily have them because the relationship is between Castor Bean plants and Argentine ants. In California, Argentine ants are a major pest.