Functions and the AI can iterate.
If you had anything more complex, that might return an error the AI could improve on, or where the AI would not know how it received the return value, than yes, a properly formatted “assistant” message showing the function emitted should be included.
That “chat history” after the user input should continue to grow until the user has been answered, and also, if it is retrieving knowledge, simple inclusion in following turns will prevent the AI from calling again upon the function to answer the similar question.