I have this tool and this RuntimeContext type, but can't figure out where I'm supposed to pass in the RuntimeContext generic into the tool. I see that I can pass it to agent.generate(), but how does that get to the tool itself?
This snippet (https://mastra.ai/en/docs/agents/runtime-variables#creating-tools-with-variables) seems to suggest that it's somehow type-safe but I ca'nt figure out how. I'd assume that a generic should be passed to the tool, and then when the tool is attached to the agent, you'd have to make sure the runtime contexts are compatible or something? Not sure!