How do I make RuntimeContext Typesafe?
if seems that the
RuntimeContext becomes type unknown when used in a workflow or step.
for example here I need to re-define finished every time I want to use it which feels very counter intuitive.
same goes with:
I define runtime context with a set of types here before calling my workflow
I would not mind if I had to inject this when declaring a step or workflow since I know it can be tough with typescript to pass the types around, but it seems that there is no way to do this.
the same would apply to the Agent definition.3 Replies
Hi @Raid55 ! Yes, that's known limitation currently. I'll let our triager bot open a GH feature request.
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/8043
GitHub
[DISCORD:1418302235397460111] How do I make RuntimeContext Typesafe...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1418302235397460111 if seems that the RuntimeContext becomes type unknown when used in a workflow or step....