Skip to content

ModelStopResponse

Defined in: src/hooks/events.ts:471

Response from a model invocation containing the message and stop reason.

readonly message: Message;

Defined in: src/hooks/events.ts:475

The message returned by the model.


readonly stopReason: StopReason;

Defined in: src/hooks/events.ts:479

The reason the model stopped generating.


readonly redaction?: Redaction;

Defined in: src/hooks/events.ts:485

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).