forked from trpc-group/trpc-agent-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtools.py
More file actions
19 lines (17 loc) · 650 Bytes
/
Copy pathtools.py
File metadata and controls
19 lines (17 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Tencent is pleased to support the open source community by making tRPC-Agent-Python available.
#
# Copyright (C) 2026 Tencent. All rights reserved.
#
# tRPC-Agent-Python is licensed under Apache-2.0.
""" Tools for the agent. """
def get_weather_report(city: str) -> dict:
"""get weather information for the specified city"""
# Simulate weather API invocation
weather_data = {
"Beijing": {
"temperature": "25°C",
"condition": "Sunny",
"humidity": "60%"
},
}
return weather_data.get(city, {"temperature": "Unknown", "condition": "Data not available", "humidity": "Unknown"})