# IChatModel Namespace: LLama.OldVersion ```csharp public interface IChatModel ``` ## Properties ### **Name** ```csharp public abstract string Name { get; } ``` #### Property Value [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
## Methods ### **Chat(String, String, String)** ```csharp IEnumerable Chat(string text, string prompt, string encoding) ``` #### Parameters `text` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
`prompt` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
`encoding` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
#### Returns [IEnumerable<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1)
### **InitChatPrompt(String, String)** Init a prompt for chat and automatically produce the next prompt during the chat. ```csharp void InitChatPrompt(string prompt, string encoding) ``` #### Parameters `prompt` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
`encoding` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
### **InitChatAntiprompt(String[])** ```csharp void InitChatAntiprompt(String[] antiprompt) ``` #### Parameters `antiprompt` [String[]](https://docs.microsoft.com/en-us/dotnet/api/system.string)