Class PicoLLMDialog.Builder

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Integer history  
      protected java.lang.String system  
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Field Detail

      • history

        protected java.lang.Integer history
      • system

        protected java.lang.String system
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setHistory

        public PicoLLMDialog.Builder setHistory​(java.lang.Integer history)
        Sets the history length for the builder.
        Parameters:
        history - The history length to set. History refers to the number of latest back-and-forths to include in the prompt. Setting history to `null` will embed the entire dialog in the prompt.
        Returns:
        Builder instance.
      • setSystem

        public PicoLLMDialog.Builder setSystem​(java.lang.String system)
        Sets the system instruction for the builder.
        Parameters:
        system - The system instruction to set. System instruction to embed in the prompt for configuring the model's responses.
        Returns:
        Builder instance.
      • build

        public PicoLLMDialog build()
        Builds a new instance of PicoLLMDialog based on the configured settings.
        Returns:
        A new instance of PicoLLMDialog.