how to design systems for agents

some patterns for making AI work in the world