Hi Jatin,
Adding a Python function to your assistant will make it run locally, but not in AI Foundry Agent Playground. In the Playground, it will not run automatically—you have to manually trigger the Python environment. If you don’t, the function won’t run and will eventually time out or fail.
Let me know if you have more queries.
Feel free to accept this as an answer.