LLamaSharp/docs/xmldocs/llama.oldversion.chatsessio...

2.1 KiB

ChatSession<T>

Namespace: LLama.OldVersion

Caution

The entire LLama.OldVersion namespace will be removed


public class ChatSession<T>

Type Parameters

T

Inheritance ObjectChatSession<T>

Constructors

ChatSession(T)

public ChatSession(T model)

Parameters

model T

Methods

Chat(String, String, String)

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

Parameters

text String

prompt String

encoding String

Returns

IEnumerable<String>

WithPrompt(String, String)

public ChatSession<T> WithPrompt(string prompt, string encoding)

Parameters

prompt String

encoding String

Returns

ChatSession<T>

WithPromptFile(String, String)

public ChatSession<T> WithPromptFile(string promptFilename, string encoding)

Parameters

promptFilename String

encoding String

Returns

ChatSession<T>

WithAntiprompt(String[])

Set the keywords to split the return value of chat AI.

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

Parameters

antiprompt String[]

Returns

ChatSession<T>