Class Observation

    • Method Detail

      • actionGroupInvocationOutput

        public final ActionGroupInvocationOutput actionGroupInvocationOutput()

        Contains the JSON-formatted string returned by the API invoked by the action group.

        Returns:
        Contains the JSON-formatted string returned by the API invoked by the action group.
      • finalResponse

        public final FinalResponse finalResponse()

        Contains details about the response to the user.

        Returns:
        Contains details about the response to the user.
      • knowledgeBaseLookupOutput

        public final KnowledgeBaseLookupOutput knowledgeBaseLookupOutput()

        Contains details about the results from looking up the knowledge base.

        Returns:
        Contains details about the results from looking up the knowledge base.
      • repromptResponse

        public final RepromptResponse repromptResponse()

        Contains details about the response to reprompt the input.

        Returns:
        Contains details about the response to reprompt the input.
      • traceId

        public final String traceId()

        The unique identifier of the trace.

        Returns:
        The unique identifier of the trace.
      • type

        public final Type type()

        Specifies what kind of information the agent returns in the observation. The following values are possible.

        • ACTION_GROUP – The agent returns the result of an action group.

        • KNOWLEDGE_BASE – The agent returns information from a knowledge base.

        • FINISH – The agent returns a final response to the user with no follow-up.

        • ASK_USER – The agent asks the user a question.

        • REPROMPT – The agent prompts the user again for the same information.

        If the service returns an enum value that is not available in the current SDK version, type will return Type.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        Returns:
        Specifies what kind of information the agent returns in the observation. The following values are possible.

        • ACTION_GROUP – The agent returns the result of an action group.

        • KNOWLEDGE_BASE – The agent returns information from a knowledge base.

        • FINISH – The agent returns a final response to the user with no follow-up.

        • ASK_USER – The agent asks the user a question.

        • REPROMPT – The agent prompts the user again for the same information.

        See Also:
        Type
      • typeAsString

        public final String typeAsString()

        Specifies what kind of information the agent returns in the observation. The following values are possible.

        • ACTION_GROUP – The agent returns the result of an action group.

        • KNOWLEDGE_BASE – The agent returns information from a knowledge base.

        • FINISH – The agent returns a final response to the user with no follow-up.

        • ASK_USER – The agent asks the user a question.

        • REPROMPT – The agent prompts the user again for the same information.

        If the service returns an enum value that is not available in the current SDK version, type will return Type.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        Returns:
        Specifies what kind of information the agent returns in the observation. The following values are possible.

        • ACTION_GROUP – The agent returns the result of an action group.

        • KNOWLEDGE_BASE – The agent returns information from a knowledge base.

        • FINISH – The agent returns a final response to the user with no follow-up.

        • ASK_USER – The agent asks the user a question.

        • REPROMPT – The agent prompts the user again for the same information.

        See Also:
        Type
      • 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)