@Generated(value="OracleSDKGenerator", comments="API Version: 20231130") public final class LlamaLlmInferenceResponse extends LlmInferenceResponse
The generated text result to return.
Note: Objects should always be created or deserialized using the LlamaLlmInferenceResponse.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the LlamaLlmInferenceResponse.Builder
, which maintain a
set of all explicitly set fields called LlamaLlmInferenceResponse.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
LlamaLlmInferenceResponse.Builder |
LlmInferenceResponse.RuntimeType
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
LlamaLlmInferenceResponse(Date created,
List<Choice> choices)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static LlamaLlmInferenceResponse.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<Choice> |
getChoices()
A list of generated texts.
|
Date |
getCreated()
The Unix timestamp (in seconds) of when the generation was created.
|
int |
hashCode() |
LlamaLlmInferenceResponse.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public LlamaLlmInferenceResponse(Date created, List<Choice> choices)
public static LlamaLlmInferenceResponse.Builder builder()
Create a new builder.
public LlamaLlmInferenceResponse.Builder toBuilder()
public Date getCreated()
The Unix timestamp (in seconds) of when the generation was created.
public List<Choice> getChoices()
A list of generated texts. Can be more than one if n is greater than 1.
public String toString()
toString
in class LlmInferenceResponse
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class LlmInferenceResponse
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class LlmInferenceResponse
public int hashCode()
hashCode
in class LlmInferenceResponse
Copyright © 2016–2024. All rights reserved.