Class AgentHistoryService

java.lang.Object
io.jmix.dynmodelai.history.AgentHistoryService
All Implemented Interfaces:
AgentHistory

@Component("dmagent_AgentHistory") public class AgentHistoryService extends Object implements AgentHistory
Saves and reads immutable event snapshots independently of runtime caches and UI sessions.
  • Constructor Details

  • Method Details

    • record

      public void record(AgentHistoryRecord event)
      The terminal event and its chat message commit together, before live delivery.
      Specified by:
      record in interface AgentHistory
    • getRunHistory

      public org.springframework.data.domain.Page<AgentHistoryRecord> getRunHistory(UUID conversationId, UUID runId, org.springframework.data.domain.Pageable pageable)
    • getRunSnapshots

      public org.springframework.data.domain.Page<AgentHistoryRecord> getRunSnapshots(UUID conversationId, UUID runId, org.springframework.data.domain.Pageable pageable)
    • modelNamesByConversation

      public Map<UUID,List<String>> modelNamesByConversation(List<UUID> conversationIds)
      Distinct recorded model names in first-observation order; missing history is not inferred from configuration.