Package edu.tufts.hrilab.llm
Class LLMNLComponent
java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.llm.LLMNLComponent
- All Implemented Interfaces:
NLUInterface
-
Field Summary
Fields inherited from class edu.tufts.hrilab.diarc.DiarcComponent
executionLoopCycleTime, log, shouldRunExecutionLoop -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.apache.commons.cli.Option>Override this method to define command line options available in sub-class.This is a testing/development method which provides the output of the current prompt at a given pointprotected voidparseArgs(org.apache.commons.cli.CommandLine cmdLine) Override this method to parse command line args in the sub-class.Accumulates text, sentence-at-a-time and attempts to parse the incoming Utterance.Methods inherited from class edu.tufts.hrilab.diarc.DiarcComponent
createInstance, createInstance, createInstance, createInstance, executionLoop, getMyGroupConstraints, getMyGroups, getMyService, getMyServices, init, main, shutdown, shutdownComponent
-
Constructor Details
-
LLMNLComponent
public LLMNLComponent()
-
-
Method Details
-
additionalUsageInfo
Description copied from class:DiarcComponentOverride this method to define command line options available in sub-class. This should be paired with a parseArgs implementation.- Overrides:
additionalUsageInfoin classDiarcComponent- Returns:
-
parseArgs
protected void parseArgs(org.apache.commons.cli.CommandLine cmdLine) Description copied from class:DiarcComponentOverride this method to parse command line args in the sub-class. Called directly after construction to pass runtime values that will override default values. This should parse all the options that additionalUsageInfo provides.- Overrides:
parseArgsin classDiarcComponent
-
parseUtterance
Description copied from interface:NLUInterfaceAccumulates text, sentence-at-a-time and attempts to parse the incoming Utterance.- Specified by:
parseUtterancein interfaceNLUInterface- Returns:
- Utterance populated with semantics.
-
convertSemanticsToText
-
getPromptText
This is a testing/development method which provides the output of the current prompt at a given point- Returns:
- text of the current prompt that would be generated if called
-