The Interactive Mode is a critical feature of the SUI Agent Kit that allows users to guide AI agents step-by-step in performing blockchain operations. This mode involves real-time feedback, memory for retaining context, and user-driven interactions. Below, we provide a detailed explanation and step-by-step instructions for implementing the Interactive Mode.
Purpose of Interactive Mode
Interactive Mode is designed for:
- Enhanced User Control: Users can guide the AI agent step-by-step for executing tasks (e.g., transferring tokens or checking balances).
- Real-Time Feedback: Provide immediate feedback to users after each action (e.g., “Transaction successful” or “Insufficient balance”).
- Context Retention: Maintain the context of the conversation (e.g., remembering selected wallets or previously checked balances).
- Error Mitigation: Allow users to correct errors or provide missing information interactively.
Key Components of Interactive Mode
1. User Input
- Users provide commands or queries (e.g., “Check my balance” or “Transfer 10 SUI to 0x123”).
- Input can be in natural language or structured commands.
2. AI Agent
- The AI agent processes user input, executes corresponding blockchain operations, and provides feedback.
- Memory is used to retain context across multiple interactions.
3. Feedback System
- The system responds with actionable feedback after each step, such as:
- Success messages (e.g., “Transaction successful”).
- Error messages (e.g., “Insufficient funds” or “Invalid wallet address”).
- Follow-up prompts for missing information (e.g., “What wallet would you like to use?”).
4. Memory for Context
- Memory ensures the agent remembers details from previous steps (e.g., selected wallet or balance).