Class ChatContext
java.lang.Object
edu.tufts.hrilab.llm.serviceproviders.tr.social.ChatContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChatStateprotected ChatTypeprotected booleanprotected Stringprotected ChatGeneral State Variablesprotected booleanprotected Stringprotected Stringprotected Stringprotected Objectprotected Stringprotected intprotected Stringprotected Utterance -
Constructor Summary
ConstructorsConstructorDescriptionChatContext(Chat chat) ChatContext(Chat chat, long cid) ChatContext(ChatContext other) -
Method Summary
Modifier and TypeMethodDescriptionintlonggetUid()voidprotected voidRelease all locks for the collection and active context.voidvoid"Focused" context only - signal that the focused context is completed."Focused" context only - wait for the focused context to terminate with a validated instruction (or interrupted)
-
Field Details
-
history
General State Variables -
chatType
-
chatState
-
utteranceUpForValidation
-
toolCallIdUpForValidation
-
lastToolCallName
-
contextID
-
containsLLMParse
protected boolean containsLLMParse -
lastResponseString
-
lastResponseToolCallId
-
lastResponseStreamed
protected boolean lastResponseStreamed -
lastTemplateName
-
lastTemplateValue
-
onQuestionAskedHistorySize
protected int onQuestionAskedHistorySize
-
-
Constructor Details
-
ChatContext
-
ChatContext
-
ChatContext
-
-
Method Details
-
signalCompletion
public void signalCompletion()"Focused" context only - signal that the focused context is completed. -
waitForCompletion
"Focused" context only - wait for the focused context to terminate with a validated instruction (or interrupted)- Returns:
- The semantics of the validated, populated focused template semantics. Null if interrupted or aborted.
-
getUid
public long getUid() -
releaseLocks
protected void releaseLocks()Release all locks for the collection and active context. Only use this method in the case of error recovery. -
getNumParseErrors
public int getNumParseErrors() -
incrementNumParseErrors
public void incrementNumParseErrors() -
resetNumParseErrors
public void resetNumParseErrors() -
getHistory
-