Interface SessionState.Builder

    • Method Detail

      • invocationId

        SessionState.Builder invocationId​(String invocationId)

        The identifier of the invocation.

        Parameters:
        invocationId - The identifier of the invocation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • promptSessionAttributes

        SessionState.Builder promptSessionAttributes​(Map<String,​String> promptSessionAttributes)

        Contains attributes that persist across a prompt and the values of those attributes. These attributes replace the $prompt_session_attributes$ placeholder variable in the orchestration prompt template. For more information, see Prompt template placeholder variables.

        Parameters:
        promptSessionAttributes - Contains attributes that persist across a prompt and the values of those attributes. These attributes replace the $prompt_session_attributes$ placeholder variable in the orchestration prompt template. For more information, see Prompt template placeholder variables.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • returnControlInvocationResults

        SessionState.Builder returnControlInvocationResults​(Collection<InvocationResultMember> returnControlInvocationResults)

        Contains information about the results from the action group invocation.

        Parameters:
        returnControlInvocationResults - Contains information about the results from the action group invocation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • returnControlInvocationResults

        SessionState.Builder returnControlInvocationResults​(InvocationResultMember... returnControlInvocationResults)

        Contains information about the results from the action group invocation.

        Parameters:
        returnControlInvocationResults - Contains information about the results from the action group invocation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sessionAttributes

        SessionState.Builder sessionAttributes​(Map<String,​String> sessionAttributes)

        Contains attributes that persist across a session and the values of those attributes.

        Parameters:
        sessionAttributes - Contains attributes that persist across a session and the values of those attributes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.