#include </home/runner/work/yarp-documentation/yarp-documentation/yarp/opt-modules/yarp-devices-llm/src/devices/GPTDevice/GPTDevice.h>
Definition at line 23 of file GPTDevice.h.
◆ GPTDevice() [1/3]
◆ GPTDevice() [2/3]
◆ GPTDevice() [3/3]
◆ ~GPTDevice()
GPTDevice::~GPTDevice |
( |
| ) |
|
|
overridedefault |
◆ ask()
Performs a question.
- Parameters
-
question | the text of the question provided by the user |
answer | the returned answer |
- Returns
- true/false
Implements yarp::dev::ILLM.
Definition at line 85 of file GPTDevice.cpp.
◆ close()
bool GPTDevice::close |
( |
| ) |
|
|
overridevirtual |
◆ deleteConversation()
Delete the conversation and clear the system context from any internally stored context.
- Returns
- true/false
Implements yarp::dev::ILLM.
Definition at line 219 of file GPTDevice.cpp.
◆ getConversation()
Retrieves the whole conversation.
- Parameters
-
conversation | the conversation |
- Returns
- true/false
Implements yarp::dev::ILLM.
Definition at line 187 of file GPTDevice.cpp.
◆ open()
Open the DeviceDriver.
- Parameters
-
config | is a list of parameters for the device. Which parameters are effective for your device can vary. See device invocation examples. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device). |
- Returns
- true/false upon success/failure
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 14 of file GPTDevice.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ readPrompt()
◆ refreshConversation()
◆ setPrompt()
Performs a question.
- Parameters
-
prompt | provides a prompt to the LLM |
- Returns
- true/false
Implements yarp::dev::ILLM.
Definition at line 148 of file GPTDevice.cpp.
The documentation for this class was generated from the following files:
- opt-modules/yarp-devices-llm/src/devices/GPTDevice/GPTDevice.h
- opt-modules/yarp-devices-llm/src/devices/GPTDevice/GPTDevice.cpp