Interface FunctionDefinition.Builder

    • Method Detail

      • description

        FunctionDefinition.Builder description​(String description)

        A description of the function and its purpose.

        Parameters:
        description - A description of the function and its purpose.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        FunctionDefinition.Builder name​(String name)

        A name for the function.

        Parameters:
        name - A name for the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • parameters

        FunctionDefinition.Builder parameters​(Map<String,​ParameterDetail> parameters)

        The parameters that the agent elicits from the user to fulfill the function.

        Parameters:
        parameters - The parameters that the agent elicits from the user to fulfill the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • requireConfirmation

        FunctionDefinition.Builder requireConfirmation​(String requireConfirmation)

        Contains information if user confirmation is required to invoke the function.

        Parameters:
        requireConfirmation - Contains information if user confirmation is required to invoke the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RequireConfirmation, RequireConfirmation
      • requireConfirmation

        FunctionDefinition.Builder requireConfirmation​(RequireConfirmation requireConfirmation)

        Contains information if user confirmation is required to invoke the function.

        Parameters:
        requireConfirmation - Contains information if user confirmation is required to invoke the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RequireConfirmation, RequireConfirmation