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
23 lines (19 loc) · 731 Bytes
/
Copy pathtools.py
File metadata and controls
23 lines (19 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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 Claude member team agents """
def get_weather(city: str) -> str:
"""Get the weather of a city.
Args:
city: The city name to get weather for.
Returns:
Weather information for the city.
"""
weather_data = {
"beijing": "Beijing: Sunny, 25C, humidity 45%",
"shanghai": "Shanghai: Cloudy, 28C, humidity 65%",
"shenzhen": "Shenzhen: Rainy, 30C, humidity 80%",
}
return weather_data.get(city.lower(), f"{city}: Partly cloudy, 22C, humidity 55%")