Class GenericChatResponse.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiinference.model.GenericChatResponse.Builder
-
- Enclosing class:
- GenericChatResponse
public static class GenericChatResponse.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericChatResponse
build()
GenericChatResponse.Builder
choices(List<ChatChoice> choices)
A list of generated texts.GenericChatResponse.Builder
copy(GenericChatResponse model)
GenericChatResponse.Builder
timeCreated(Date timeCreated)
The Unix timestamp (in seconds) of when the response text was generated.
-
-
-
Method Detail
-
timeCreated
public GenericChatResponse.Builder timeCreated(Date timeCreated)
The Unix timestamp (in seconds) of when the response text was generated.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
choices
public GenericChatResponse.Builder choices(List<ChatChoice> choices)
A list of generated texts.Can be more than one if n is greater than 1.
- Parameters:
choices
- the value to set- Returns:
- this builder
-
build
public GenericChatResponse build()
-
copy
public GenericChatResponse.Builder copy(GenericChatResponse model)
-
-