Geolocation Tool and Example Agent
Adds a geolocation tool with the following capabilities:
- Time: uses python's datetime library to get current time on the local machine.
- Timezone: uses python's tzlocal library to get the timezone of the local machine.
- Location: uses requests library to get ip of local machine, ip is then used in another request, which returns the following information:
1. city
2. region
3. country
4. coordinates (longitude/latitude) --> not the exact location of user, but the isp location.
5. timezone
6. public ip
7. service provider
Note: gets geolocation information based on public ip of the machine it is being run on, meaning inaccuracies can occur if agent is being run by a server or if ip points to a different location (such as if a vpn is being used).
Other addition:
Very basic agent also created to test the tool, added to agentic's example agents.
合并状态:已合并 合并于 2025-07-31 关闭于 2025-07-31 1 条评论