Package com.axelor.ai.chat.stream
Interface LoopEvent
- All Known Implementing Classes:
LoopEvent.Complete,LoopEvent.Error,LoopEvent.Message,LoopEvent.Stream,LoopEvent.WaitForContinuation
public sealed interface LoopEvent
permits LoopEvent.Stream, LoopEvent.Message, LoopEvent.WaitForContinuation, LoopEvent.Complete, LoopEvent.Error
Typed events produced by the agentic loop. Separates event generation (business logic) from
serialization (transport concern) so the loop can be tested without an HTTP response and
alternative transports (WebSocket, polling) can be added.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe loop completed normally.static final recordThe loop encountered an unrecoverable error.static final recordA message to add to conversation history (persisted by plugins).static final recordAn SSE stream event to send to the client.static final recordThe loop is pausing — waiting for user action (approval, client tool result).