Interface LoopEvent

All Known Implementing Classes:
LoopEvent.Complete, LoopEvent.Error, LoopEvent.Message, LoopEvent.Stream, LoopEvent.WaitForContinuation

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 Classes
    Modifier and Type
    Interface
    Description
    static final record 
    The loop completed normally.
    static final record 
    The loop encountered an unrecoverable error.
    static final record 
    A message to add to conversation history (persisted by plugins).
    static final record 
    An SSE stream event to send to the client.
    static final record 
    The loop is pausing — waiting for user action (approval, client tool result).