Class SessionEvent.Builder

java.lang.Object
org.springframework.ai.session.SessionEvent.Builder
Enclosing class:
SessionEvent

public static final class SessionEvent.Builder extends Object
Builds a SessionEvent. The id is a random UUID, the timestamp Instant.now(), the payload and the metadata empty, unless set; the session id is required. The type is EventType.MESSAGE when a message is set, which that type requires and no other type allows.