Skip to content
tnsaiDocs
GitHub

Intelligence

tnsai-intelligence adds planning, multi-step reasoning, state machines, context management and learning to agents. Add the module to use any of these pages; see Install.

PageCovers
PlanningPlanners that choose actions from goals and state, and LLM-written plans with review and replanning
ReasoningReAct, Tree of Thoughts, Graph of Thoughts, self-consistency and other executors that spend several LLM calls on one question
State machinesFixed states and transitions driven by events and guards
ContextCompaction, the context graph, sessions, knowledge extraction and memory consolidation
LearningFeedback, norms, the refinement loop and the prompt optimizer

For typed LLM output, see Structured output.