@Generated(value="OracleSDKGenerator", comments="API Version: 20231130") public final class SummarizeTextDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Details for the request to summarize text.
Note: Objects should always be created or deserialized using the SummarizeTextDetails.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 SummarizeTextDetails.Builder
, which maintain a
set of all explicitly set fields called SummarizeTextDetails.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 |
SummarizeTextDetails.Builder |
static class |
SummarizeTextDetails.Extractiveness
Controls how close to the original text the summary is.
|
static class |
SummarizeTextDetails.Format
Indicates the style in which the summary will be delivered - in a free form paragraph or in
bullet points.
|
static class |
SummarizeTextDetails.Length
Indicates the approximate length of the summary.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
SummarizeTextDetails(String input,
ServingMode servingMode,
String compartmentId,
Boolean isEcho,
Double temperature,
String additionalCommand,
SummarizeTextDetails.Length length,
SummarizeTextDetails.Format format,
SummarizeTextDetails.Extractiveness extractiveness)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SummarizeTextDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getAdditionalCommand()
A free-form instruction for modifying how the summaries get generated.
|
String |
getCompartmentId()
The OCID of compartment in which to call the Generative AI service to summarize text.
|
SummarizeTextDetails.Extractiveness |
getExtractiveness()
Controls how close to the original text the summary is.
|
SummarizeTextDetails.Format |
getFormat()
Indicates the style in which the summary will be delivered - in a free form paragraph or in
bullet points.
|
String |
getInput()
The input string to be summarized.
|
Boolean |
getIsEcho()
Whether or not to include the original inputs in the response.
|
SummarizeTextDetails.Length |
getLength()
Indicates the approximate length of the summary.
|
ServingMode |
getServingMode() |
Double |
getTemperature()
A number that sets the randomness of the generated output.
|
int |
hashCode() |
SummarizeTextDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"input","servingMode","compartmentId","isEcho","temperature","additionalCommand","length","format","extractiveness"}) public SummarizeTextDetails(String input, ServingMode servingMode, String compartmentId, Boolean isEcho, Double temperature, String additionalCommand, SummarizeTextDetails.Length length, SummarizeTextDetails.Format format, SummarizeTextDetails.Extractiveness extractiveness)
public static SummarizeTextDetails.Builder builder()
Create a new builder.
public SummarizeTextDetails.Builder toBuilder()
public String getInput()
The input string to be summarized.
public ServingMode getServingMode()
public String getCompartmentId()
The OCID of compartment in which to call the Generative AI service to summarize text.
public Boolean getIsEcho()
Whether or not to include the original inputs in the response.
public Double getTemperature()
A number that sets the randomness of the generated output. Lower temperatures mean less random generations.
Use lower numbers for tasks with a correct answer such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0, and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs.
public String getAdditionalCommand()
A free-form instruction for modifying how the summaries get generated. Should complete the sentence “Generate a summary _”. For example, “focusing on the next steps” or “written by Yoda”.
public SummarizeTextDetails.Length getLength()
Indicates the approximate length of the summary. If “AUTO” is selected, the best option will be picked based on the input text.
public SummarizeTextDetails.Format getFormat()
Indicates the style in which the summary will be delivered - in a free form paragraph or in bullet points. If “AUTO” is selected, the best option will be picked based on the input text.
public SummarizeTextDetails.Extractiveness getExtractiveness()
Controls how close to the original text the summary is. High extractiveness summaries will lean towards reusing sentences verbatim, while low extractiveness summaries will tend to paraphrase more.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.