R50 386989e9f0b703ce5647f112f284693e
нейроинтерфейсы

create_function_chat on python

Добавлено 06 авг 2024 в 19:35
https://github.com/neuroidss/create_function_chat

чатбот ищет и возвращает по запросу в телеграме пару научных статей по нужной тематике, причём сам чатбот состоит только из одной функции которая умеет создавать все остальные функции

python create_function_chat.py "call Create function described as Search for articles on arxiv" "call Create function described as Send a message using the Telegram Bot API." 'call Create function with description "Via telegram web api read last message id, using token and chat_id, do not use telegram library"' 'call Create function with description "Via telegram web api read messages every second until message id will be different that provided as parameter, using token and chat_id, do not use telegram library, return json string"' 'send telegram bot message "which science articles to search?" via web api, token=YOUR_TOKEN, chat_id=YOUR_CHAT_ID' 'read last message id' 'then use that last message id to get new message' 'search 2 articles on arxiv about what user sent in last message' 'send telegram bot message Summary about these 2 last articles via web api'
313cb07776