Interface Observation.Builder

    • Method Detail

      • actionGroupInvocationOutput

        Observation.Builder actionGroupInvocationOutput​(ActionGroupInvocationOutput actionGroupInvocationOutput)

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

        Parameters:
        actionGroupInvocationOutput - Contains the JSON-formatted string returned by the API invoked by the action group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • finalResponse

        Observation.Builder finalResponse​(FinalResponse finalResponse)

        Contains details about the response to the user.

        Parameters:
        finalResponse - Contains details about the response to the user.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • knowledgeBaseLookupOutput

        Observation.Builder knowledgeBaseLookupOutput​(KnowledgeBaseLookupOutput knowledgeBaseLookupOutput)

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

        Parameters:
        knowledgeBaseLookupOutput - Contains details about the results from looking up the knowledge base.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • repromptResponse

        Observation.Builder repromptResponse​(RepromptResponse repromptResponse)

        Contains details about the response to reprompt the input.

        Parameters:
        repromptResponse - Contains details about the response to reprompt the input.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • traceId

        Observation.Builder traceId​(String traceId)

        The unique identifier of the trace.

        Parameters:
        traceId - The unique identifier of the trace.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • type

        Observation.Builder type​(String 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Type, Type
      • type

        Observation.Builder type​(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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Type, Type