|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- # ChatSession<T>
-
- Namespace: LLama.OldVersion
-
- #### Caution
-
- The entire LLama.OldVersion namespace will be removed
-
- ---
-
- ```csharp
- public class ChatSession<T>
- ```
-
- #### Type Parameters
-
- `T`<br>
-
- Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [ChatSession<T>](./llama.oldversion.chatsession-1.md)
-
- ## Constructors
-
- ### **ChatSession(T)**
-
- ```csharp
- public ChatSession(T model)
- ```
-
- #### Parameters
-
- `model` T<br>
-
- ## Methods
-
- ### **Chat(String, String, String)**
-
- ```csharp
- public IEnumerable<string> Chat(string text, string prompt, string encoding)
- ```
-
- #### Parameters
-
- `text` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
-
- `prompt` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
-
- `encoding` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
-
- #### Returns
-
- [IEnumerable<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1)<br>
-
- ### **WithPrompt(String, String)**
-
- ```csharp
- public ChatSession<T> WithPrompt(string prompt, string encoding)
- ```
-
- #### Parameters
-
- `prompt` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
-
- `encoding` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
-
- #### Returns
-
- [ChatSession<T>](./llama.oldversion.chatsession-1.md)<br>
-
- ### **WithPromptFile(String, String)**
-
- ```csharp
- public ChatSession<T> WithPromptFile(string promptFilename, string encoding)
- ```
-
- #### Parameters
-
- `promptFilename` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
-
- `encoding` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
-
- #### Returns
-
- [ChatSession<T>](./llama.oldversion.chatsession-1.md)<br>
-
- ### **WithAntiprompt(String[])**
-
- Set the keywords to split the return value of chat AI.
-
- ```csharp
- public ChatSession<T> WithAntiprompt(String[] antiprompt)
- ```
-
- #### Parameters
-
- `antiprompt` [String[]](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
-
- #### Returns
-
- [ChatSession<T>](./llama.oldversion.chatsession-1.md)<br>
|