diff --git a/channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/logging/internal/SessionManager.kt b/channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/logging/internal/SessionManager.kt index 377fea70..f7f73ff8 100644 --- a/channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/logging/internal/SessionManager.kt +++ b/channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/logging/internal/SessionManager.kt @@ -9,7 +9,7 @@ import kotlinx.serialization.Transient import java.util.* -internal const val SESSION_MANAGER_KEY = "com/justai/jaicf/jaicp/logging/conversationSession/sessionManager" +private const val SESSION_MANAGER_KEY = "com/justai/jaicf/jaicp/logging/conversationSession/sessionManager" @Serializable internal data class SessionData( diff --git a/channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/reactions/reaction/EndSessionReaction.kt b/channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/reactions/reaction/EndSessionReaction.kt index 7d743255..cbaf8e26 100644 --- a/channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/reactions/reaction/EndSessionReaction.kt +++ b/channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/reactions/reaction/EndSessionReaction.kt @@ -4,4 +4,6 @@ import com.justai.jaicf.logging.Reaction data class EndSessionReaction( override val fromState: String -) : Reaction(fromState) \ No newline at end of file +) : Reaction(fromState) { + override fun toString(): String = """end current session from state $fromState""" +} \ No newline at end of file diff --git a/channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/reactions/reaction/NewSessionReaction.kt b/channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/reactions/reaction/NewSessionReaction.kt index 4ce6339b..d6c29dda 100644 --- a/channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/reactions/reaction/NewSessionReaction.kt +++ b/channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/reactions/reaction/NewSessionReaction.kt @@ -4,4 +4,6 @@ import com.justai.jaicf.logging.Reaction data class NewSessionReaction( override val fromState: String -) : Reaction(fromState) \ No newline at end of file +) : Reaction(fromState) { + override fun toString(): String = """start new session from state $fromState""" +} \ No newline at end of file