SWAI agents can seamlessly switch between different model providers based on specific requirements, performance considerations, or availability, without disrupting the core reasoning architecture.
Core architecture
Built on Stately.ai, Cortex combines AI creativity with state machine reliability to create predictable yet natural interactions.LLM reasoning
Reasoning models like DeepSeek power chain-of-thought reasoning and real-time decision-making in live systems like CTZN
State machines
Predictable workflows that maintain natural interactions
Web3 integration
On-chain personality and state traits stored using Metaplex Core — powering dynamic, verifiable agent logic within CTZN
Event processing
Multi-source input handling for context-aware decisions
Architecture details
Explore the detailed architecture of Cortex, including state diagrams, reasoning processes, and practical examples of how agents make decisions.
Decision making process
1
Input gathering
- Personality traits (stored on-chain)
- Event streams from Synapse
- Background story elements
- Current state context
2
State evaluation
- Current agent status
- Available actions
- Transition conditions
3
LLM reasoning
- Understand context
- Generate responses
- Make decisions
4
Action execution
- Validated against state rules
- Executed in sequence
- Logged for verification