Skip to content

Module nonebot_plugin_marshoai.plugins_test.weather_demo


@on_function_call(description='可以用于查询天气').params(location=String(description='地点'))

async func weather(location: str) -> str

Source code or View on GitHub
python
@on_function_call(description='可以用于查询天气').params(location=String(description='地点'))
async def weather(location: str) -> str:
    return f'{location}的天气是晴天, 温度是25°C'

The document is being improved. Suggestions are welcome.