Using createVectorQueryTool in agent configuration throwing TS Error
Hey, I'm using the latest mastra packages and trying to add a vector tool to the agent, but this is throwing a Zod error:
Code:
Tool definition
package.json
documentation: https://mastra.ai/en/examples/rag/usage/filter-rag#vector-query-tool-creation
Example: Agent-Driven Metadata Filtering | Retrieval | RAG | Mastra...
Example of using a Mastra agent in a RAG system to construct and apply metadata filters for document retrieval.
4 Replies
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/9518
GitHub
[DISCORD:1433425201961500712] Using createVectorQueryTool in agent ...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1433425201961500712 Hey, I'm using the latest mastra packages and trying to add a vector tool to the a...
Hi! I do not reproduce this on latest versions!
Hey @ahanusek , I fixed this by wrapping a vector tool with a generic tool. Apparently nested tools can loose inputSchema and this is a registered bug here:
https://github.com/mastra-ai/mastra/issues/9699
GitHub
Chaining supervisor agent with agents which own vector tools does n...
This issue was created from Discord post 1435311074948943993: I have created a supervisor agent, which has a tool calling agent B. Agent B has an access to the vector tool and if called directly - ...
I just made a fix for that other issue last night!
Vector tool was using Zod.passthrough which adds that additional properties thing