A generated API call is only correct if it calls the API it was meant for. Checking the function name against the retrieved API is a basic correctness test for tool calls.
Implement api_name_matches(call, api), comparing the function name in the call with the expected API.
Take the text before the first opening parenthesis, strip spaces, and compare it with the API name.
No results yet
Run your code to check it against the examples, or submit to run every test.