Package com.tnsai.hooks.events
Interface ChatHookEvent
- All Superinterfaces:
HookEvent
- All Known Implementing Classes:
OnChunk,OnNotification,PostChat,PreChat
public sealed interface ChatHookEvent
extends HookEvent
permits PreChat, PostChat, OnChunk, OnNotification
Conversation-boundary hook events (issue #60). Fire around the
user-facing chat surface — the natural integration point for prompt
injection scanning, PII redaction, content safety filters, and
tenant quota enforcement.
Distinct from ActionHookEvent (which fires around every
dispatcher call, including framework-internal LLM probes) and from
(tool-dispatch only). Chat events fire once
per user turn, regardless of how many internal LLM / tool calls
the agent makes.
invalid reference
ToolHookEvent
PreChat— user message submitted, before prompt assemblyPostChat— final assistant response readyOnChunk— eachChatChunkduring streamingOnNotification— agent requests user attention
- Since:
- 0.5.0 (issue #60)
-
Method Summary