Class AskOutput.Builder
java.lang.Object
de.xima.fc.prompt.ms.impl.service.generic_oai.client.model.AskOutput.Builder
- Enclosing class:
AskOutput
-
Method Summary
Modifier and TypeMethodDescriptionSets the generated response text.build()Builds and returns the response object.inputTokens(Long inputTokens) Sets the tokens that were consumed from the input prompt.outputTokens(Long outputTokens) Sets the tokens that were generated in the output response.totalTokens(Long totalTokens) Sets the total number of tokens used in the request.
-
Method Details
-
answer
Sets the generated response text.- Parameters:
answer- The generated response text.- Returns:
- The builder instance for chaining.
-
build
Builds and returns the response object. Subsequent modifications to the builder will not affect the constructed object.- Returns:
- The constructed response.
-
inputTokens
Sets the tokens that were consumed from the input prompt.- Parameters:
inputTokens- The number of input tokens.- Returns:
- The builder instance for chaining.
-
outputTokens
Sets the tokens that were generated in the output response.- Parameters:
outputTokens- The number of output tokens.- Returns:
- The builder instance for chaining.
-
totalTokens
Sets the total number of tokens used in the request.- Parameters:
totalTokens- The total number of tokens.- Returns:
- The builder instance for chaining.
-