Interface SessionHistorySource

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SessionHistorySource
Optional full-history reader for GET /agentscope/sessions/{id}/messages.

AgentScope Harness persists an append-only .log.jsonl; BYO apps that use the harness can plug a source that reads it (including via a distributed AbstractFilesystem). When absent, the adapter falls back to the live AgentState context buffer.

  • Method Details

    • loadMessages

      Optional<List<MessagePage.MessageItem>> loadMessages(String sessionId, String userId)
      Parameters:
      sessionId - session key
      userId - user slot recorded when the session was first seen; may be empty
      Returns:
      full message list (not yet paginated), or empty when no log is available