chore: minor adjustments
This commit is contained in:
@@ -12,7 +12,7 @@ async def get_weather(city:str):
|
||||
如果是此时此刻的天气请求,调用此工具。
|
||||
"""
|
||||
# 模拟真实的网络请求(你可以换成自己的天气API)
|
||||
# 在MCP中,工具函数可以是async的,FastMCP会自动处理
|
||||
# 在MCP中,工具函数可以是async的,FastMCP会自动处理。
|
||||
return f"{city}的天气是:晴,气温25℃,风力3级"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user