Skip to content

ChatSession<T>

Namespace: LLama

1
public class ChatSession<T>

Type Parameters

T

Inheritance ObjectChatSession<T>

Constructors

ChatSession(T)

1
public ChatSession(T model)

Parameters

model T

Methods

Chat(String, String)

1
public IEnumerable<string> Chat(string text, string prompt)

Parameters

text String

prompt String

Returns

IEnumerable<String>

WithPrompt(String)

1
public ChatSession<T> WithPrompt(string prompt)

Parameters

prompt String

Returns

ChatSession<T>

WithPromptFile(String)

1
public ChatSession<T> WithPromptFile(string promptFilename)

Parameters

promptFilename String

Returns

ChatSession<T>

WithAntiprompt(String[])

1
public ChatSession<T> WithAntiprompt(String[] antiprompt)

Parameters

antiprompt String[]

Returns

ChatSession<T>