A Python package for an AI assistant with AGI capabilities.
# Create a virtual environment
python -m venv venv
# Activate the virtual environmentsource venv/bin/activate # On Windows: venv\Scripts\activate# Install the package and dependencies
pip install -e .fromassistant_agiimportprocess# Process a queryresponse=process("What's 25 + 17?")
print(response)
# Access the agent directlyfromassistant_agiimportagentresponse=agent.chat("What's the weather like today?")You can run the assistant directly from the command line:
# Using the console script
assistant-agi
# Or using the Python module
python -m assistant_agi.assistantYou can run the assistant as a REST API server:
# Install with API dependencies
pip install -e ".[api]"# Run the API server
assistant-agi-api
# Or using the Python module
python -m assistant_agi.apiYou can call the assistant from Node.js using the provided client:
constAssistantAGI=require('./node_client');// Create an instance of the AssistantAGI clientconstassistant=newAssistantAGI();// Process a queryassistant.process("What's 25 + 17?").then(response=>console.log(response)).catch(error=>console.error(error));// Chat with the agentassistant.chat("What's the weather like today?").then(response=>console.log(response)).catch(error=>console.error(error));- Intelligent query processing with strands-agents
- Calendar tracking, restaurant reservations, and concert ticket booking
- Interactive command-line interface with visual feedback
- Extensible architecture for adding custom tools
- Easy integration with other systems
The assistant includes a sophisticated visual interface with:
- Animated spinners showing processing status
- Color-coded messages for different states
- Progress tracking for tool operations
- Graceful error handling
# Create a development environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate# Install development dependencies
pip install -e ".[dev]"# Run tests
pytestFor the best development experience with VSCode:
- Open the project in VSCode
- Select the Python interpreter from the virtual environment:
- Press
Cmd+Shift+P(orCtrl+Shift+Pon Windows) - Type "Python: Select Interpreter"
- Choose the interpreter from the
venvfolder
- Press
MIT