-
public final class StreamingPromptResponseKt.Dsl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classStreamingPromptResponseKt.Dsl.Companion
-
Field Summary
Fields Modifier and Type Field Description private Stringcontentprivate StringfinishReasonprivate IntegerrequestTokensprivate IntegerresponseTokensprivate IntegerstreamDuration
-
Method Summary
Modifier and Type Method Description final StringgetContent()final UnitsetContent(String content)final StringgetFinishReason()final UnitsetFinishReason(String finishReason)final IntegergetRequestTokens()final UnitsetRequestTokens(Integer requestTokens)final IntegergetResponseTokens()final UnitsetResponseTokens(Integer responseTokens)final IntegergetStreamDuration()final UnitsetStreamDuration(Integer streamDuration)final UnitclearContent()Prompt Contentstring content = 1;final UnitclearFinishReason()Finish reason, given when the stream endsoptional string finish_reason = 2;final BooleanhasFinishReason()Finish reason, given when the stream endsoptional string finish_reason = 2;final UnitclearRequestTokens()Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;final BooleanhasRequestTokens()Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;final UnitclearResponseTokens()Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;final BooleanhasResponseTokens()Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;final UnitclearStreamDuration()Stream duration, given when the stream endsoptional uint32 stream_duration = 5;final BooleanhasStreamDuration()Stream duration, given when the stream endsoptional uint32 stream_duration = 5;-
-
Method Detail
-
getContent
final String getContent()
-
setContent
final Unit setContent(String content)
-
getFinishReason
final String getFinishReason()
-
setFinishReason
final Unit setFinishReason(String finishReason)
-
getRequestTokens
final Integer getRequestTokens()
-
setRequestTokens
final Unit setRequestTokens(Integer requestTokens)
-
getResponseTokens
final Integer getResponseTokens()
-
setResponseTokens
final Unit setResponseTokens(Integer responseTokens)
-
getStreamDuration
final Integer getStreamDuration()
-
setStreamDuration
final Unit setStreamDuration(Integer streamDuration)
-
clearContent
final Unit clearContent()
Prompt Contentstring content = 1;
-
clearFinishReason
final Unit clearFinishReason()
Finish reason, given when the stream endsoptional string finish_reason = 2;
-
hasFinishReason
final Boolean hasFinishReason()
Finish reason, given when the stream endsoptional string finish_reason = 2;
-
clearRequestTokens
final Unit clearRequestTokens()
Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;
-
hasRequestTokens
final Boolean hasRequestTokens()
Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;
-
clearResponseTokens
final Unit clearResponseTokens()
Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;
-
hasResponseTokens
final Boolean hasResponseTokens()
Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;
-
clearStreamDuration
final Unit clearStreamDuration()
Stream duration, given when the stream endsoptional uint32 stream_duration = 5;
-
hasStreamDuration
final Boolean hasStreamDuration()
Stream duration, given when the stream endsoptional uint32 stream_duration = 5;
-
-
-
-