Inline Agents. Sometimes we don't need features of the current or any other class to “agentize”. We can write the agent code in-line with where it is wanted and needed. In this example, we write an in-line agent function that makes random deposits to our list of accounts.