You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
436 B
20 lines
436 B
8 months ago
|
from swarms import tool
|
||
|
|
||
|
|
||
|
# Create the wrapper to wrap the function
|
||
|
@tool(
|
||
|
name="Geo Coordinates Locator",
|
||
|
description=("Locates geo coordinates with a city and or zip code"),
|
||
|
return_string=False,
|
||
|
return_dict=False,
|
||
|
)
|
||
|
def send_api_request_to_get_geo_coordinates(
|
||
|
city: str = None, zip: int = None
|
||
|
):
|
||
|
return "Test"
|
||
|
|
||
|
|
||
|
# Run the function to get the schema
|
||
|
out = send_api_request_to_get_geo_coordinates()
|
||
|
print(out)
|