Package com.storedobject.ui.ai
Class Knowledge
java.lang.Object
com.storedobject.ai.Knowledge
com.storedobject.ui.ai.Knowledge
- All Implemented Interfaces:
DataRetriever,Executable,Runnable
The Knowledge class is an extension of the com.storedobject.ai.Knowledge class
and implements the Executable interface. This class provides functionality to
manage knowledge topics and interact with a chat view for execution and display purposes.
- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.ai.Knowledge
Knowledge.CoreTools -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.storedobject.ai.Knowledge
addDataClass, addDataClass, addDataClass, addDataClass, addModules, count, createChat, createChat, get, getAttributes, getClass, getId, getTransactionManager, isChatting, isLogging, list, log, save, save, setDataRetriever, setLoggingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.common.Executable
act, run
-
Constructor Details
-
Knowledge
public Knowledge()Default constructor. -
Knowledge
Constructor with a topic.- Parameters:
topic- Topic (It could be a topic name or topic name followed by | and then class details).
-
-
Method Details
-
add
Add class details to the knowledge base.- Parameters:
classDetails- Class details (Format: className1|className2|... or friendlyName,className1,param1,param2|...)
-
setTopic
-
getTopic
-
execute
public void execute()Execute the knowledge (opens the chat view).- Specified by:
executein interfaceExecutable
-