While working on Human-in-the-Loop agents for TurboTable based on great article by @aisdk team I found it's inconvenient to have definition of the tools and execute functions in two separate places. Also type inference and intellisense was not 100%. Created a small helper type.