-
- All Implemented Interfaces:
-
com.google.protobuf.MessageLiteOrBuilder
public interface StreamingPromptResponseOrBuilder implements MessageLiteOrBuilder
-
-
Method Summary
Modifier and Type Method Description abstract StringgetContent()Prompt Contentstring content = 1;abstract ByteStringgetContentBytes()Prompt Contentstring content = 1;abstract booleanhasFinishReason()Finish reason, given when the stream endsoptional string finish_reason = 2;abstract StringgetFinishReason()Finish reason, given when the stream endsoptional string finish_reason = 2;abstract ByteStringgetFinishReasonBytes()Finish reason, given when the stream endsoptional string finish_reason = 2;abstract booleanhasRequestTokens()Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;abstract intgetRequestTokens()Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;abstract booleanhasResponseTokens()Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;abstract intgetResponseTokens()Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;abstract booleanhasStreamDuration()Stream duration, given when the stream endsoptional uint32 stream_duration = 5;abstract intgetStreamDuration()Stream duration, given when the stream endsoptional uint32 stream_duration = 5;-
-
Method Detail
-
getContent
abstract String getContent()
Prompt Contentstring content = 1;
-
getContentBytes
abstract ByteString getContentBytes()
Prompt Contentstring content = 1;
-
hasFinishReason
abstract boolean hasFinishReason()
Finish reason, given when the stream endsoptional string finish_reason = 2;
-
getFinishReason
abstract String getFinishReason()
Finish reason, given when the stream endsoptional string finish_reason = 2;
-
getFinishReasonBytes
abstract ByteString getFinishReasonBytes()
Finish reason, given when the stream endsoptional string finish_reason = 2;
-
hasRequestTokens
abstract boolean hasRequestTokens()
Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;
-
getRequestTokens
abstract int getRequestTokens()
Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;
-
hasResponseTokens
abstract boolean hasResponseTokens()
Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;
-
getResponseTokens
abstract int getResponseTokens()
Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;
-
hasStreamDuration
abstract boolean hasStreamDuration()
Stream duration, given when the stream endsoptional uint32 stream_duration = 5;
-
getStreamDuration
abstract int getStreamDuration()
Stream duration, given when the stream endsoptional uint32 stream_duration = 5;
-
-
-
-