ChatSession<T>
Namespace: LLama
public class ChatSession<T>
Type Parameters
T
Inheritance Object → ChatSession<T>
Constructors
ChatSession(T)
public ChatSession(T model)
Parameters
model
T
Methods
Chat(String, String)
public IEnumerable<string> Chat(string text, string prompt)
Parameters
text
String
prompt
String
Returns
WithPrompt(String)
public ChatSession<T> WithPrompt(string prompt)
Parameters
prompt
String
Returns
WithPromptFile(String)
public ChatSession<T> WithPromptFile(string promptFilename)
Parameters
promptFilename
String
Returns
WithAntiprompt(String[])
public ChatSession<T> WithAntiprompt(String[] antiprompt)
Parameters
antiprompt
String[]