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 class
Encapsulating class for the state information present in DIARC at a current time. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set<ActionDBEntry>
protected String
protected long
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
generate()
Generates the text of the prompt based on the information collected from DIARClong
void
Updates prompt with relevant state information from DIARC.void
setHumanInput
(String input) Add the raw NL from the human to the utterance/protected void
updatePromptState
(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()
-