Class SummarizeTextDetails


  • @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).
    • Method Detail

      • getInput

        public String getInput()
        The input string to be summarized.
        Returns:
        the value
      • getCompartmentId

        public String getCompartmentId()
        The OCID of compartment in which to call the Generative AI service to summarize text.
        Returns:
        the value
      • getIsEcho

        public Boolean getIsEcho()
        Whether or not to include the original inputs in the response.
        Returns:
        the value
      • getTemperature

        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.

        Returns:
        the value
      • getAdditionalCommand

        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”.

        Returns:
        the value
      • getLength

        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.

        Returns:
        the value
      • getFormat

        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.

        Returns:
        the value
      • getExtractiveness

        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.

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel