smllm
smllm guides an LLM agent through a workflow with a state machine: the agent sees one state at a time, and moves on only by firing one of the state’s events. This documentation teaches you to write a machine, connect it to your agent, and look up each rule and finding of smllm validate.
Where to start
- You are new to smllm: install it as the README shows, then follow Your first state machine.
- You want an agent to follow your machine: follow Connect an agent, then Check the agent’s work.
- You run the engine in your own program: follow Run the engine in Node.js.
- You want to know why smllm uses a state machine: read Why a state machine.
- You want to see where an agent is: follow Show smllm in your status line.
smllm validatereported a finding: look up its code in The rules of smllm validate, and its cause and fix on the page of the code, such as FMT-1: The machine file.
The sections
- Tutorials: lessons that build one working thing, step by step.
- How-to guides: one task each, from start to finish.
- Reference: the facts to look up, such as each rule of
smllm validateand the findings under it. - Explanations: why smllm works the way it does.