Pecking order in a llama herd is very important
and llamas will sometimes spit to establish dominance
over each other. They should have no reason to spit at humans.
Llama spit
Most often spitting occurs over food
and then it is mostly air, grain or hay.

They don’t really like to spit as it tastes awful
and they will spend about an hour later airing their mouths out.