Interface FinalResponse.Builder

  • Method Details

    • metadata

      FinalResponse.Builder metadata(Metadata metadata)

      Contains information about the invoke agent operation.

      Parameters:
      metadata - Contains information about the invoke agent operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      default FinalResponse.Builder metadata(Consumer<Metadata.Builder> metadata)

      Contains information about the invoke agent operation.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metadata(Metadata).

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

      The text in the response to the user.

      Parameters:
      text - The text in the response to the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.