-
Notifications
You must be signed in to change notification settings - Fork 4
Commit 626e608
committed
[BLCKCHN-439] AI Agent Explorer – Transaction Description Generation
Enhance Telegram bot functionality and add transaction analysis feature
- Updated bot.py to improve the Telegram bot's initialization and message handling.
- Introduced a new CronosTransactionAnalyzer class for analyzing and describing transactions on the Cronos EVM.
- Added transaction analysis capabilities, including detailed descriptions and technical breakdowns for user queries.
- Updated requirements.txt to reflect the latest version of cryptocom-agent-client and python-telegram-bot for compatibility.
- Improved logging setup for better debugging and user experience.
Refactor transaction analysis output in bot.py and cronos_tx_analyzer.py
- Enhanced the transaction information display in the Telegram bot by restructuring the output format for better readability.
- Updated the interaction prompts in the interactive mode to remove emojis and improve clarity.
- Added detailed sections for transaction descriptions and technical details, ensuring consistent formatting across responses.
- Improved error handling messages for a cleaner user experience.
Enhance CronosTransactionAnalyzer initialization and chain ID retrieval
- Updated the CronosTransactionAnalyzer class to accept a dashboard API key for improved chain identification.
- Implemented logic to dynamically determine the RPC URL and chain ID based on the provided API key or fallback to defaults.
- Added a method to fetch the chain ID from the dashboard API, enhancing flexibility and usability in transaction analysis.
- Modified bot.py to initialize the analyzer with the dashboard API key for better integration.
Refactor Telegram bot integration for Crypto.com Agent
- Updated bot.py to enhance the structure and functionality of the Telegram bot, providing a clearer interface for user interactions.
- Introduced a CryptoAgentBot class to encapsulate bot operations, including initialization, message handling, and transaction analysis.
- Improved environment variable management and logging setup for better debugging and user experience.
- Added methods for handling user commands and messages, including /start and /help, to guide users in utilizing the bot's features.
- Enhanced transaction analysis capabilities with detailed responses for user queries regarding Cronos EVM transactions.
This update aims to streamline the bot's architecture and improve overall usability.1 parent 67f8168 commit 626e608Copy full SHA for 626e608
File tree
Expand file treeCollapse file tree
3 files changed
+1337
-187
lines changedFilter options
- bot/cryptocom-ai-telegram-bot
Expand file treeCollapse file tree
3 files changed
+1337
-187
lines changed
0 commit comments