Make tool validation async to allow async refinements
Having the ability to run async zod refinements as part of tool calls would be a good get. Since working memory is also modeled as a tool call this makes it easy to guide how the agents update memory and enforce domain specific validations without inventing another abstraction
Raised a PR showing what I am looking for https://github.com/mastra-ai/mastra/pull/10678
Please lmk if this is something you'd want upstream and also if you need changes. Thanks !
cc: @Abhi Aiyer
GitHub
Make tool ip/op/suspend data validation async to allow for zod refi...
β¦ments to be async
Description
Related Issue(s)
Type of Change
Bug fix (non-breaking change that fixes an issue)
New feature (non-breaking change that adds functionality)
Breaking change (fix...
2 Replies
Thanks for opening this! We'll take a look!
π Created GitHub issue: https://github.com/mastra-ai/mastra/issues/10699
π If you're experiencing an error, please provide a minimal reproducible example whenever possible to help us resolve it quickly.
π Thank you for helping us improve Mastra!