You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions.
system
[{"name": "getpetbyid", "description": "Fetches the details of a pet by its ID from an external API.", "parameters": {"petid": {"description": "The ID of the pet to retrieve information for.", "type": "int", "default": 0}}}]
How can I get details about pets 789 and 987?
user
assistant
[{"name": "getpetbyid", "arguments": {"petid": 789}}, {"name": "getpetbyid", "arguments": {"petid": 987}}]