Section 01
Introduction: FSM-LLM Framework—Empowering Large Language Models with Structured Thinking via Finite State Machines
FSM-LLM is an open-source framework designed to address the obstacles in complex multi-turn dialogues caused by the stateless nature of large language models (LLMs). It combines the structured control capabilities of finite state machines (FSMs) with the language understanding abilities of LLMs to build predictable, testable, and maintainable intelligent dialogue systems. The core idea is to separate state control from language processing: LLMs handle language tasks, FSMs manage process control, and the framework maintains the state.