Class AgentEventStreams

java.lang.Object
io.jmix.dynmodelai.session.AgentEventStreams

@Component("dmagent_AgentEventStreams") public class AgentEventStreams extends Object
Transport only. Pending questions and Run transitions belong to Conversation commands.
  • Field Details

  • Constructor Details

  • Method Details

    • registerRun

      public void registerRun(UUID conversationId, UUID runId)
    • publish

      public AgentEvent publish(UUID conversationId, UUID runId, AgentEventPayload payload)
    • observe

      public void observe(UUID conversationId, UUID runId, AgentObservation observation)
      Saves diagnostics once, then emits only their safe progress projection, with an independent cursor.
    • completeRun

      public boolean completeRun(UUID conversationId, UUID runId, String summary, @Nullable String detail, RunOutcome outcome)
    • completeRun

      public boolean completeRun(UUID conversationId, UUID runId, String summary, @Nullable String detail, RunOutcome outcome, @Nullable DraftPresentation draft)
    • failRun

      public void failRun(UUID conversationId, UUID runId, RuntimeException failure)
      Terminates transport after a failed mandatory write; no replacement history is invented.
    • releaseRun

      public void releaseRun(UUID runId)
      Release transport retention after the owning Conversation resolves or expires its question.
    • streamEvents

      public reactor.core.publisher.Flux<AgentEvent> streamEvents(UUID conversationId, UUID runId, long afterSequence)