give examples
- User
give examples
Assistant
Function calling example:
get_weather(city="Paris", units="celsius") calculate_tax(income=50000, state="CA")Tool calling examples (broader):
- Calling functions (like above)
- Using a web browser tool to search the internet
- Accessing a calculator application
- Running a bash command in terminal
- Querying a database
- Calling an external API service
Function calling is specifically about invoking code functions with parameters, while tool calling encompasses any external capability an AI can use - including functions, but also web browsers, terminals, APIs, or other software tools.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.