You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

llama.ichatmodel.md 1.1 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # IChatModel
  2. Namespace: LLama
  3. ```csharp
  4. public interface IChatModel
  5. ```
  6. ## Properties
  7. ### **Name**
  8. ```csharp
  9. public abstract string Name { get; }
  10. ```
  11. #### Property Value
  12. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  13. ## Methods
  14. ### **Chat(String, String)**
  15. ```csharp
  16. IEnumerable<string> Chat(string text, string prompt)
  17. ```
  18. #### Parameters
  19. `text` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  20. `prompt` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  21. #### Returns
  22. [IEnumerable&lt;String&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1)<br>
  23. ### **InitChatPrompt(String)**
  24. ```csharp
  25. void InitChatPrompt(string prompt)
  26. ```
  27. #### Parameters
  28. `prompt` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  29. ### **InitChatAntiprompt(String[])**
  30. ```csharp
  31. void InitChatAntiprompt(String[] antiprompt)
  32. ```
  33. #### Parameters
  34. `antiprompt` [String[]](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>