Package edu.tufts.hrilab.llm
Class DIARCPrompt
java.lang.Object
edu.tufts.hrilab.llm.DIARCPrompt
- Direct Known Subclasses:
AMRPrompt,GSPChainPrompt,NaiveDIARCPrompt
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classEncapsulating class for the state information present in DIARC at a current time. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set<ActionDBEntry>protected Stringprotected longprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringgenerate()Generates the text of the prompt based on the information collected from DIARClongvoidUpdates prompt with relevant state information from DIARC.voidsetHumanInput(String input) Add the raw NL from the human to the utterance/protected voidupdatePromptState(DIARCPrompt.DIARCState stateUpdate) Updates prompt state info with most recent state info from DIARC.
-
Field Details
-
name
-
humanInput
-
facts
-
actions
-
properties
-
entities
-
latestTimeStamp
protected long latestTimeStamp
-
-
Constructor Details
-
DIARCPrompt
-
-
Method Details
-
generate
Generates the text of the prompt based on the information collected from DIARC- Returns:
- String that will be sent to the LLM
-
setHumanInput
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
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()
-