Interface ChatResponse.Builder

  • Method Details

    • sessionId

      ChatResponse.Builder sessionId(String sessionId)

      The ID of the session. If you omitted sessionId in the request, use this value to continue the session in subsequent calls.

      Parameters:
      sessionId - The ID of the session. If you omitted sessionId in the request, use this value to continue the session in subsequent calls.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sequenceNumber

      ChatResponse.Builder sequenceNumber(Long sequenceNumber)

      The updated sequence number for this session. Pass this value as expectedSequenceNumber on your next call.

      Parameters:
      sequenceNumber - The updated sequence number for this session. Pass this value as expectedSequenceNumber on your next call.
      Returns:
      Returns a reference to this object so that method calls can be chained together.