Agent definition

An agent is a JSON document. The document holds a set of named functions, and each function is an ordered list of commands. Wherever a value has to be computed, the document uses a Python expression.