Uses of Interface
com.tnsai.agents.interrupt.InterruptEvent
Packages that use InterruptEvent
-
Uses of InterruptEvent in com.tnsai.agents.interrupt
Classes in com.tnsai.agents.interrupt that implement InterruptEventModifier and TypeClassDescriptionstatic final recordBudget interrupt when token/cost limits are hit.static final recordError interrupt for recoverable errors.static final recordExternal system interrupt (e.g., shutdown signal, orchestrator command).static final recordTimeout interrupt when execution exceeds time limit.static final recordUser-initiated interrupt (e.g., cancel button, Ctrl+C).Methods in com.tnsai.agents.interrupt that return types with arguments of type InterruptEventModifier and TypeMethodDescriptionInterruptibleAgent.getCurrentInterrupt()Gets the current interrupt event, if any.AgentCheckpoint.getTrigger()Gets the trigger event that caused this checkpoint.Methods in com.tnsai.agents.interrupt with parameters of type InterruptEventModifier and TypeMethodDescriptionInterruptibleAgent.checkpoint(InterruptEvent trigger) Creates a checkpoint with a specific trigger event.voidInterruptibleAgent.interrupt(InterruptEvent event) Interrupts with a specific event.AgentCheckpoint.Builder.trigger(InterruptEvent event) Method parameters in com.tnsai.agents.interrupt with type arguments of type InterruptEventModifier and TypeMethodDescriptionvoidInterruptibleAgent.onInterrupt(Consumer<InterruptEvent> handler) Registers a callback for interrupt events.