I figured it out! As someone else mentioned in another post, the solution is to send another event, right away:
type: 'response.create',
response: {
instructions: "Reply based on the function's output."
}
It works, but still, I wonder why we really need to do this. If you have an explanation of the logic behind this, I am definitely interested. Thanks and I hope it will be hopeful for others