ModelStopResponse
Defined in: src/hooks/events.ts:313
Response from a model invocation containing the message and stop reason.
Properties
Section titled “Properties”message
Section titled “message”readonly message: Message;Defined in: src/hooks/events.ts:317
The message returned by the model.
stopReason
Section titled “stopReason”readonly stopReason: StopReason;Defined in: src/hooks/events.ts:321
The reason the model stopped generating.
redaction?
Section titled “redaction?”readonly optional redaction?: Redaction;Defined in: src/hooks/events.ts:327
Optional redaction info when guardrails blocked input.
When present, indicates the last user message was redacted.
The redacted message is available in agent.messages (last message).