Uses of Interface
com.tnsai.hooks.events.HookEvent
Packages that use HookEvent
Package
Description
-
Uses of HookEvent in com.tnsai.hooks
Classes in com.tnsai.hooks with type parameters of type HookEventModifier and TypeInterfaceDescriptioninterfaceHookMatcher<E extends HookEvent>Filters whether aHookfires for a given event (issue #58).static final recordHookMatcher.All<E extends HookEvent>Unconditional match.static final recordHookMatcher.Predicate<E extends HookEvent>Arbitrary typed predicate — use when regex-on-eventType isn't enough (payload field inspection, cross-field rules).static final recordHookMatcher.Regex<E extends HookEvent>Pattern applied toeventType().interfaceHookResult<E extends HookEvent>Decision returned by aHookafter observing an event (issue #58).static final recordHookResult.Allow<E extends HookEvent>Pass-through.static final recordHookResult.Block<E extends HookEvent>Refuse the operation.static final recordHookResult.Modify<E extends HookEvent>Replace the event for the rest of the chain.Methods in com.tnsai.hooks with type parameters of type HookEventModifier and TypeMethodDescriptionstatic <E extends HookEvent>
HookMatcher<E> HookMatcher.all()<E extends HookEvent>
HookResult<E> HookDispatcher.dispatch(E event) Run the hook chain foreventand return the final decision.static <E extends HookEvent>
HookResult.Allow<E> HookResult.Allow.instance()static <E extends HookEvent>
HookMatcher.Regex<E> Convenience: compile the pattern from a string.static <E extends HookEvent>
HookMatcher<E> static <E extends HookEvent>
HookMatcher<E> <E extends HookEvent>
voidRegister a hook. -
Uses of HookEvent in com.tnsai.hooks.events
Subinterfaces of HookEvent in com.tnsai.hooks.eventsModifier and TypeInterfaceDescriptioninterfaceGeneric action-dispatch hook events (issue #59).interfaceAgent lifecycle hook events (issue #60).interface@Capability-dispatch hook events (issue #60).interfaceConversation-boundary hook events (issue #60).interfacePlugin / SPI discovery hook events (issue #63).interfaceServer session lifecycle hook events (issue #63).Classes in com.tnsai.hooks.events that implement HookEventModifier and TypeClassDescriptionfinal recordFires once whenAgentBuilder.build()completes, before the firstchat()call (issue #60).final recordFires once when an agent is about to handle its first chat (issue #60).final recordFires when an agent is shutting down (issue #60).final recordFires when an action throws during execution (issue #59).final recordFires whenActionExecutordispatches a method that originated from a@Capabilityinterface (issue #60).final recordFires for eachChatChunkduring streaming (issue #60).final recordFires when an agent needs user attention (issue #60): a confirmation prompt, a long-running status update, an error the user should see asynchronously, or an idle re-engagement signal.final recordFires when a session has been idle past the configured threshold (issue #63).final recordFires when aServiceLoader-discovered provider is loaded (issue #63).final recordFires on an agent FSM state change (issue #60).final recordFires after an action returns successfully (issue #59).final recordFires after the final assistant response for a user turn is ready (issue #60).final recordFires beforeActionExecutorroutes any action (issue #59).final recordFires when a user message is submitted, before prompt assembly (issue #60).final recordFires when a client session closes for any reason (issue #63).final recordFires when a new client session opens on the server (issue #63). -
Uses of HookEvent in com.tnsai.hooks.external
Methods in com.tnsai.hooks.external that return types with arguments of type HookEventMethods in com.tnsai.hooks.external with parameters of type HookEventModifier and TypeMethodDescriptionMethod parameters in com.tnsai.hooks.external with type arguments of type HookEvent -
Uses of HookEvent in com.tnsai.hooks.spi
Classes in com.tnsai.hooks.spi with type parameters of type HookEvent