Can I assign provider options for input/output processors?
HI, I often use some provided input/output processors.those are quite useful in offering simple guard features. then, I have a question of processors. Do you have some options to assign provider options for that provided processors?
https://mastra.ai/ja/docs/agents/input-processors
https://mastra.ai/ja/docs/agents/output-processors
I already checked main branch processor implementations,
https://github.com/mastra-ai/mastra/blob/d26807762f2bdbea8b387c8fb8b69236806681f5/packages/core/src/processors/processors/prompt-injection-detector.ts#L194
but it's not supported yet, I think. However, some providers provide a thinking model as a default parameters like openai. In this case, this processors occurs slow response and consume lots of tokens.
If this processors can receive a parameter to handle reasoning effort or something, user experience may be improved. Do you have some plan of this matter?
I make a custom processors to avoid this problem, but it's bit reinventing the wheel...
5 Replies
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/8112
GitHub
[DISCORD:1419955645070835824] Can I assign provider options for inp...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1419955645070835824 HI, I often use some provided input/output processors.those are quite useful in offeri...
Hi @hayata-yamamoto ! Thanks for the suggestion, you can follow the issue above for updates 😉
thanks!
hi @hayata-yamamoto PRs are welcome!
👍