Class that interacts with the r2ai plugin (requires rlang-python and r2i r2pm packages to be installed). Provides a way to script the interactions with different language models using javascript from inside radare2.
r2ai
rlang-python
r2i
Optional
Instance variable that informs if the r2ai plugin is loaded, must be true in order to use the rest of the methods of this class.
Name of the model instantiated to be used for the subsequent calls.
Get the current selected model name.
model name
Get a list of suggestions for model names to use.
array of strings containing the model names known to work
Send message to the language model to be appended to the current conversation (see .reset())
.reset()
response from the language model
Reset conversation messages
Set the Model name or path to the GGUF file to use.
true if successful
Set the role (system prompt) message for the language model to obey.
Generated using TypeDoc
Class that interacts with the
r2ai
plugin (requiresrlang-python
andr2i
r2pm packages to be installed). Provides a way to script the interactions with different language models using javascript from inside radare2.