A comprehensive platform for managing, monitoring, and evaluating AI agents with blockchain-based accountability and token rewards.
- Beautiful UI/UX: Modern dark theme with smooth animations and responsive design
- Real-time Updates: Live agent monitoring with WebSocket support
- Interactive Dashboard: Comprehensive analytics and performance metrics
- Mobile Responsive: Works seamlessly on all device sizes
- Agent Types: Support for different agent specializations:
- General Purpose
- Financial Advisor
- Medical Assistant
- Legal Advisor
- Technical Support
- Agent Management: Create, configure, and monitor multiple agents
- Agent Discovery: Easy agent selection and switching
- Smart Contract Integration: Blockchain-based token rewards and penalties
- Real-time Evaluation: Instant feedback on agent actions
- Token Balance Tracking: Live updates of agent token balances
- Performance Incentives: Reward good behavior, penalize bad actions
- Performance Metrics: Success rates, action counts, and trends
- Leaderboard: Rank agents by performance and token balance
- Action Timeline: Complete history of agent activities
- Real-time Logs: Comprehensive logging with filtering
- Action Logging: Record all agent inputs and outputs
- IPFS Storage: Decentralized storage for action records
- Hash Verification: Cryptographic verification of actions
- Audit Trail: Complete traceability of agent decisions
- RESTful API: Comprehensive endpoints for all operations
- Database Integration: PostgreSQL for persistent storage
- Blockchain Integration: Web3.py for smart contract interaction
- IPFS Integration: Decentralized file storage
- Modern CSS: Custom design system with CSS variables
- Component-based: Modular JavaScript architecture
- Real-time Updates: Live data synchronization
- Progressive Enhancement: Works without JavaScript
- Agent Registry: Track registered agents
- Action Recording: Store action hashes and metadata
- Token Management: Points-based reward system
- Event Logging: Comprehensive event emission
- Python 3.8+
- Node.js 16+
- PostgreSQL
- Ethereum node (local or remote)
-
Clone the repository
git clone <repository-url> cd agent-accountability-platform
-
Install backend dependencies
cd backend pip install -r requirements.txt -
Install frontend dependencies
npm install
-
Set up environment variables
cp backend/.env.example backend/.env # Edit backend/.env with your configuration -
Set up database
createdb agent_accountability psql agent_accountability < backend/db.sql -
Deploy smart contract
npx hardhat compile npx hardhat run scripts/deploy.js --network localhost
-
Start the application
# Terminal 1: Start backend cd backend python main.py # Terminal 2: Start frontend cd frontend python -m http.server 8080
-
Access the application Open http://localhost:8080 in your browser
- Click "Add Agent" in the sidebar
- Fill in agent details (name, type, description)
- Agent is automatically registered on the blockchain
- Select an agent from the sidebar
- Fill in the action form with:
- Model information
- Dataset details
- Input/output JSON
- Additional notes
- Click "Log Action" to record the action
- View the action timeline
- Click "Good" or "Bad" for each action
- Tokens are automatically adjusted via smart contract
- View updated balances in real-time
- Switch to the "Analytics" tab
- View performance metrics and charts
- Check the leaderboard for rankings
- Monitor success rates and trends
GET /agents- List all agentsPOST /agents- Register new agentGET /agents/{address}/actions- Get agent actionsPOST /agents/{address}/actions- Log agent actionPOST /agents/{address}/evaluate- Evaluate agent action
GET /agents/{address}/analytics- Get agent analyticsGET /leaderboard- Get agent leaderboardGET /agent-types- Get available agent types
GET /health- System health checkGET /ipfs/{cid}- Retrieve IPFS contentPOST /log-action- Log action (legacy)
- Update
backend/main.py-get_agent_types()endpoint - Add type configuration with capabilities and thresholds
- Update frontend to handle new types
- Modify
frontend/styles.cssfor visual changes - CSS variables in
:rootfor easy theme customization - Responsive breakpoints for different screen sizes
- Extend
contracts/AgentVerifier.solfor new features - Add new events and functions as needed
- Update ABI and redeploy
- Input Validation: All inputs are validated and sanitized
- Access Control: Smart contract functions are protected
- Data Integrity: Cryptographic hashing ensures data integrity
- Audit Trail: Complete logging of all operations
- Use a production database (PostgreSQL)
- Deploy smart contract to mainnet/testnet
- Use production IPFS node
- Configure proper CORS settings
- Set up monitoring and logging
docker-compose up -d- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with FastAPI, Web3.py, and modern web technologies
- Smart contract based on OpenZeppelin standards
- UI inspired by modern design systems
For questions and support, please open an issue on GitHub or contact the development team.
Note: This is a demonstration platform. For production use, ensure proper security audits and testing.