Class DIARCPrompt

java.lang.Object
edu.tufts.hrilab.llm.DIARCPrompt
Direct Known Subclasses:
AMRPrompt, GSPChainPrompt, NaiveDIARCPrompt

public abstract class DIARCPrompt extends Object
  • Field Details

  • Constructor Details

    • DIARCPrompt

      public DIARCPrompt(String name)
  • Method Details

    • generate

      public abstract String generate()
      Generates the text of the prompt based on the information collected from DIARC
      Returns:
      String that will be sent to the LLM
    • setHumanInput

      public void setHumanInput(String input)
      Add the raw NL from the human to the utterance/
      Parameters:
      input - nl representation of input from the human
    • getStateFromDIARC

      public void getStateFromDIARC()
      Updates prompt with relevant state information from DIARC. This info will be used within generate() to gerneate the prompt.
    • updatePromptState

      protected void updatePromptState(DIARCPrompt.DIARCState stateUpdate)
      Updates prompt state info with most recent state info from DIARC. The default is to overwrite everything, if you want a different behavior override this
      Parameters:
      stateUpdate - sate information from DIARC
    • getLatestTimeStamp

      public long getLatestTimeStamp()