Open
Description
Describe the bug
I'm experiencing an issue where calling a new function from an agent class returns the output of a previously invoked function, leading to inconsistent agent responses.
Expected behavior
When a specific function is called from an agent class, the response should accurately reflect the output of that function, not a previously invoked function. Each function call should produce a fresh, contextually relevant response based on the current invocation
Screenshots
Correct Scenario:
Here assign_mentor gets called and giving correct response
Bug:
Here assign_mentor gets called but giving incorrect response, that response is from previous function called from same agent class.