Stately Agent is a completely open-source library for creating (LLM) agents that adhere to state machines.