Skip to content

Commit

Permalink
minor code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Denire committed Mar 5, 2021
1 parent ea33a88 commit 91c38a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import com.justai.jaicf.logging.Reaction

data class EndSessionReaction(
override val fromState: String
) : Reaction(fromState)
) : Reaction(fromState) {
override fun toString(): String = """end current session from state $fromState"""
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import com.justai.jaicf.logging.Reaction

data class NewSessionReaction(
override val fromState: String
) : Reaction(fromState)
) : Reaction(fromState) {
override fun toString(): String = """start new session from state $fromState"""
}

0 comments on commit 91c38a3

Please sign in to comment.