function_call_result for the final answer.
1) Initial request (expose your functions)
type: "function_call" item with a function_call_id and the arguments for add_numbers.
2) Send back the function result
Executeadd_numbers(a, b) locally, then include both the function call item and a function_call_result in a follow-up request:
View source on GitHub → 5_function_calling.py