Package ai.picovoice.picollm
Class Llama2ChatDialog
- java.lang.Object
-
- ai.picovoice.picollm.PicoLLMDialog
-
- ai.picovoice.picollm.Llama2ChatDialog
-
public class Llama2ChatDialog extends PicoLLMDialog
Represents a dialog helper specific for `llama-2-7b-chat`, `llama-2-13b-chat`, and `llama-2-70b-chat` models.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLlama2ChatDialog.BuilderBuilder class for constructing Llama2ChatDialog instances.
-
Field Summary
-
Fields inherited from class ai.picovoice.picollm.PicoLLMDialog
history, humanRequests, llmResponses, system
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPrompt()Generates a formatted prompt string based on the dialog's content and configured settings.-
Methods inherited from class ai.picovoice.picollm.PicoLLMDialog
addHumanRequest, addLLMResponse
-
-
-
-
Method Detail
-
getPrompt
public java.lang.String getPrompt() throws PicoLLMExceptionGenerates a formatted prompt string based on the dialog's content and configured settings.- Overrides:
getPromptin classPicoLLMDialog- Returns:
- A formatted prompt string.
- Throws:
PicoLLMException- If there's an issue generating the prompt.
-
-