Core Concepts
Task Loop
How SpinAI agents make and execute decisions
What is the Task Loop?
The task loop is SpinAI’s core decision-making process that:
- Analyzes user input
- Decides which actions to take
- Executes actions in order
- Determines when tasks are complete
How it Works
-
Decision Making The LLM analyzes the input and available actions:
-
Action Selection The LLM returns a decision:
-
Dependency Resolution SpinAI orders the actions based on dependencies:
-
Action Execution Actions run in order, sharing state through context:
Decision Flow
State Management
The task loop maintains state throughout the process:
Logging and Debugging
The task loop provides detailed logging: