# Best practice for nested tools with agent.asTool() pattern?

**URL:** <https://community.openai.com/t/best-practice-for-nested-tools-with-agent-astool-pattern/1362949>\
**Category:** API\
**Created:** [October 18, 2025, 7:12am UTC](https://community.openai.com/t/best-practice-for-nested-tools-with-agent-astool-pattern/1362949 "2025-10-18T07:12:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Ai\_Fake](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ai_fake/32/684848_2.png) [@Ai\_Fake](https://community.openai.com/u/Ai_Fake)\
**Post date:** [October 19, 2025, 6:03pm UTC](https://community.openai.com/t/best-practice-for-nested-tools-with-agent-astool-pattern/1362949/4 "2025-10-19T18:03:50Z")

</div>

I had a case where the model didn’t initialize the tools after switching the language, so I had to reinitialize them manually each time. The model explicitly responded that it was calling a function and passing a value to it, but nothing actually happened. There was no request in the API console, even though the model confidently claimed it was using the tools, knew about them, and could apply them again. But it didn’t. Most likely, the internal runtime was just resetting to a new one, while my code didn’t include reinitialization logic. I added a button — “apply tools” — to manually reinitialize the tools, but I guess it could have been automated somehow.

---

_[View the full topic](https://community.openai.com/t/best-practice-for-nested-tools-with-agent-astool-pattern/1362949)._
