An interactive command-line chatbot for ai agent service (or any framework/platform).
- 💬 Interactive chat interface with markdown support
- 🎨 Rich formatting with bordered messages for clear role distinction
- 📝 Command history via agent threads (and also stores locally)
Make sure you have Python 3.11+ installed, then install dependencies:
pip install -r requirements.txtOr if using uv:
uv syncStart the chatbot with different agent types:
# Use Azure AI Agent Service (default)
python main.py --agent ai-agent
# Use mock agent for testing
python main.py --agent mock
# Custom agent name
python main.py --agent ai-agent --agent-name "MyCustomAgent"ai-agent: Azure AI Agent Service with tool calling capabilitiesmock: Mock agent for testing and development
- Chat: Simply type your message and press Enter
exit: Quit the applicationclear: Clear the screen and show welcome messagehelp: Show welcome message with commandshistory: Display recent chat historyCtrl+C: Exit the application
🤖 Agent CLI
┌─────────────────────────────────────────────────────────────────────────────────┐
│ Welcome to Agent CLI Chatbot! 🚀
│
│ This is a prototype testing environment for AI agents with the following
│ features:
│
│ • 💬 Interactive chat with markdown support
│ • 🎨 Rich formatting with bordered messages
│ • 📝 Command history (saved to .chat_history)
│ • 🔧 Azure AI integration with tool support
└─────────────────────────────────────────────────────────────────────────────────┘
💬 You: Can you help me create a Python file with a simple calculator?
┌─ 👤 User ────────────────────────────────────────────────────────────────────────┐
│
│ Can you help me create a Python file with a simple calculator?
│
└──────────────────────────────────────────────────────────────────────────────────┘
┌─ 🔧 Tool Call ────────────────────────────────────────────────────────────────────┐
│
│ create_file
│ Creating calculator.py with basic arithmetic functions...
│
└──────────────────────────────────────────────────────────────────────────────────┘
┌─ 🤖 Assistant ───────────────────────────────────────────────────────────────────┐
│
│ I'll create a simple calculator Python file for you!
│
│ **calculator.py** has been created with the following features:
│
│ • ➕ Addition
│ • ➖ Subtraction
│ • ✖️ Multiplication
│ • ➗ Division (with zero-division handling)
│ • 📱 Interactive menu system
│
│ The calculator includes error handling and a user-friendly interface. You can
│ run it with: `python calculator.py`
│
│ Would you like me to add any additional features like advanced operations?
│
└──────────────────────────────────────────────────────────────────────────────────┘