Optionalcompute State Signal computeStateSignal ?: undefined
Optional Readonlydescription description ?: string
Optional Readonlyname name ?: string
Optionalon Violation onViolation ?: ( violation : ProcessorViolation ) => void | Promise < void >
Optionalprocess API Error processAPIError ?: undefined
Optionalprocess Data Parts processDataParts ?: boolean
processInput : ( args : ProcessInputArgs < unknown > , ) => ProcessInputResult | Promise < ProcessInputResult >
Type Declaration ( args : ProcessInputArgs < unknown > , ) : ProcessInputResult | Promise < ProcessInputResult > Parameters args : ProcessInputArgs < unknown > Returns ProcessInputResult | Promise < ProcessInputResult > Either:
MessageList: The same messageList instance passed in (indicates you've mutated it)
MastraDBMessage[]: Transformed messages array (for simple transformations)
{ messages, systemMessages }: Object with both messages and modified system messages
processInputStep ?: undefined
Optionalprocess LLM Request processLLMRequest ?: undefined
Optionalprocess LLM Response processLLMResponse ?: undefined
Optionalprocess Output Result processOutputResult ?: undefined
Optionalprocess Output Step processOutputStep ?: undefined
Optionalprocess Output Stream processOutputStream ?: undefined
Application input processor accepted by createGuardedAgent.
It can transform or reject the initial input only. Per-step, provider, output, and error hooks are unavailable because they can mutate execution after the mandatory input gates have run.