"""Tool that using for get meteo weather sensors"""
"""This tool provides data about the sensors (sensors) of the weather station. Data: lat, lng, height, name, agregator_uuid. Use it to answer questions related to this data. """
data=fetch_get_sensors()
returndata
defget_agregators_insight()->str:
"""Tool that using for get meteo weather sensors"""
"""This tool provides data on adapters (repeaters that transmit data from sensors to the server) of the weather station. Data: lat, lng, height (altitude above sea level), name, country, city, region, street. Use it to answer questions related to this data."""
data=fetch_get_agregator()
returndata
defget_weather_data_history_insight()->str:
"""Tool that using for get meteo weather history from sensors using in the meteo system"""
"""This tool provides information about the history of changes in weather data readings. It will return an array of measurements including the following data: Sensor UUID, Agregator UUID, Type (Temperature, Humidity), Value, Time (date string). Use it to answer questions using this data."""
msg=llm("Translate the text to English: "+message.text)
request="You are a system for monitoring data from weather systems. Solve the problem: "+msg+". for this solution you can use any tool without me but you can run tool only one step."
result=agent_chain(request)
if(result):
final_answer=result['output']
print(final_answer)
bot.reply_to(message,str(final_answer))
msg=llm("Переведи на красивый русский язык: "+final_answer)