With a passive verb, the person by whom the action is done is a or ab with the ablative: "by".
a stands before consonants, ab before vowels and h (also abs te). With a passive verb or participle it names the doer: ab horum ullo "by any of them", a Diis … oblatas "offered by the gods".
A thing, not a person, is in the plain ablative without a preposition: voluptate vincitur "is overcome by pleasure" (see the ablative of means). Powers thought of as persons (natura, numen) take a or ab.
With a gerundive of obligation the doer is usually in the dative: tibi cavendum est "you must beware".
Not every a or ab is an agent. With an active verb or a noun it means "from": a bonorum malorumque inscitia "from ignorance of good and evil".