ankur-singh/nexusraven-v2-13b 📝✓🔢 → 📝
About
Best Open-Source Model for Function Calling
Example Output
"
Function:
def get_weather_data(coordinates):
"""
Fetches weather data from the Open-Meteo API for the given latitude and longitude.
Args:
coordinates (tuple): The latitude of the location.
Returns:
float: The current temperature in the coordinates you've asked for
"""
Function:
def get_coordinates_from_city(city_name):
"""
Fetches the latitude and longitude of a given city name using the Maps.co Geocoding API.
Args:
city_name (str): The name of the city.
Returns:
tuple: The latitude and longitude of the city.
"""
"Setting: Allowed to issue multiple calls with semicolon
"
User Query: "What's the weather like in Seattle right now?
Output
Call: get_weather_data(coordinates=get_coordinates_from_city(city_name='Seattle'))
Thought: The function call get_weather_data(coordinates=get_coordinates_from_city(city_name='Seattle'))
answers the question "What's the weather like in Seattle right now?" by following these steps:
get_coordinates_from_city(city_name='Seattle')
: This function call fetches the latitude and longitude of the city "Seattle" using the Maps.co Geocoding API.get_weather_data(coordinates=...)
: This function call fetches the current weather data for the coordinates returned byget_coordinates_from_city
.
Therefore, the function call get_weather_data(coordinates=get_coordinates_from_city(city_name='Seattle'))
answers the question "What's the weather like in Seattle right now?" by first fetching the coordinates of the city "Seattle" and then fetching the current weather data for those coordinates.
Performance Metrics
Input Parameters
- prompt (required)
- formatted prompt
- thought
- return LLM's Thought for function calling
- max_tokens
- max tokens
- temperature
- temperature
Output Schema
Output
Version Details
- Version ID
2390dd3af8de3535e5c9d226df32cf147bc3b034df686a6ce18be0ca9175df64
- Version Created
- June 28, 2024