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.
swarms/examples/agents/tools/new_tool_wrapper.py

22 lines
450 B

5 months ago
from swarms import tool
# Create the wrapper to wrap the function
@tool(
name="Geo Coordinates Locator",
4 months ago
description=(
"Locates geo coordinates with a city and or zip code"
),
5 months ago
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)