Class OutputContext

    • Method Detail

      • name

        public final String name()

        The name of the output context.

        Returns:
        The name of the output context.
      • timeToLiveInSeconds

        public final Integer timeToLiveInSeconds()

        The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.

        Returns:
        The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.
      • turnsToLive

        public final Integer turnsToLive()

        The number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.

        Returns:
        The number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)