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...
入力プロセッサ
入力プロセッサを使って、エージェントのメッセージが言語モデルに渡る前に傍受・変更する方法を学びましょう。
出力プロセッサー
出力プロセッサーを使って、ユーザーに返す前に AI の応答をフックして変更する方法を学びましょう。
5 Replies
Mastra Triager
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...
_roamin_
_roamin_4w ago
Hi @hayata-yamamoto ! Thanks for the suggestion, you can follow the issue above for updates 😉
hayata-yamamoto
hayata-yamamotoOP4w ago
thanks!
Abhi Aiyer
Abhi Aiyer3w ago
hi @hayata-yamamoto PRs are welcome!
hayata-yamamoto
hayata-yamamotoOP3w ago
👍

Did you find this page helpful?