Class StaticContent


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20231130")
    public final class StaticContent
    extends Prediction
    Static predicted output content, such as the content of a text file that is being regenerated.
    Note: Objects should always be created or deserialized using the StaticContent.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 StaticContent.Builder, which maintain a set of all explicitly set fields called StaticContent.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

      • getContent

        public List<TextContent> getContent()
        The content that should be matched when generating a model response.

        If generated tokens would match this content, the entire model response can be returned much more quickly.

        Returns:
        the value
      • toString

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