Class PromptTestFileList<File>

  • Type Parameters:
    File - The type of the files in the list.
    All Implemented Interfaces:
    Serializable

    public final class PromptTestFileList<File>
    extends Object
    implements Serializable
    A list of output files (returned by a prompt query), used by PromptQueryTestViewModel when testing prompt in the prompt query configuration UI. Each list of files belongs to a specific file key that identifies the list of files.
    Since:
    8.5.0
    See Also:
    Serialized Form
    • Constructor Detail

      • PromptTestFileList

        public PromptTestFileList​(String fileKey,
                                  String label,
                                  String description,
                                  List<File> files)
        Creates a new prompt test file list for a specific file key.
        Parameters:
        fileKey - The file key identifying the list of files.
        label - The label of the file list.
        description - The description of the file list.
        files - The list of files.
    • Method Detail

      • getDescription

        public String getDescription()
        Gets the description for the list of files.
        Returns:
        The description.
      • getFileKey

        public String getFileKey()
        Gets the file key for the list of files.
        Returns:
        The file key.
      • getFiles

        public List<File> getFiles()
        Gets the list of files for this file key.
        Returns:
        The list of files.
      • getLabel

        public String getLabel()
        Gets the label for the list of files.
        Returns:
        The label.