Interface InvocationOutput.Builder

  • Method Details

    • message

      InvocationOutput.Builder message(String message)

      The text message of the SiteWise Assistant's response.

      Parameters:
      message - The text message of the SiteWise Assistant's response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • citations

      A list of citations, and related information for the SiteWise Assistant's response.

      Parameters:
      citations - A list of citations, and related information for the SiteWise Assistant's response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • citations

      InvocationOutput.Builder citations(Citation... citations)

      A list of citations, and related information for the SiteWise Assistant's response.

      Parameters:
      citations - A list of citations, and related information for the SiteWise Assistant's response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • citations

      A list of citations, and related information for the SiteWise Assistant's response.

      This is a convenience method that creates an instance of the Citation.Builder avoiding the need to create one manually via Citation.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to citations(List<Citation>).

      Parameters:
      citations - a consumer that will call methods on Citation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: