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
processInputStep ?: undefined
Optionalprocess LLM Request processLLMRequest ?: undefined
Optionalprocess LLM Response processLLMResponse ?: undefined
process Output Result processOutputResult : ( args : ProcessOutputResultArgs < unknown > , ) => ProcessorMessageResult
Type Declaration ( args : ProcessOutputResultArgs < unknown > ) : ProcessorMessageResult Parameters args : ProcessOutputResultArgs < unknown > Returns ProcessorMessageResult Either:
MessageList: The same messageList instance passed in (indicates you've mutated it)
MastraDBMessage[]: Transformed messages array (for simple transformations)
Optionalprocess Output Step processOutputStep ?: undefined
process Output Stream processOutputStream : ( args : ProcessOutputStreamArgs < unknown > , ) => Promise < ChunkType | null | undefined >
Type Declaration ( args : ProcessOutputStreamArgs < unknown > ) : Promise < ChunkType | null | undefined > Parameters args : ProcessOutputStreamArgs < unknown > Returns Promise < ChunkType | null | undefined >
Application output processor accepted by createGuardedAgent.
Both stream and final-result hooks are required so the processor enforces the same rule on
stream()andgenerate().