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.batched.cannotsamplerequirespromptexception.md 2.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # CannotSampleRequiresPromptException
  2. Namespace: LLama.Batched
  3. This exception is thrown when "Sample()" is called on a [Conversation](./llama.batched.conversation.md) which was not
  4. first prompted.
  5. [BatchedExecutor](./llama.batched.batchedexecutor.md).
  6. ```csharp
  7. public class CannotSampleRequiresPromptException : ExperimentalBatchedExecutorException, System.Runtime.Serialization.ISerializable
  8. ```
  9. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [Exception](https://docs.microsoft.com/en-us/dotnet/api/system.exception) → [ExperimentalBatchedExecutorException](./llama.batched.experimentalbatchedexecutorexception.md) → [CannotSampleRequiresPromptException](./llama.batched.cannotsamplerequirespromptexception.md)<br>
  10. Implements [ISerializable](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.iserializable)
  11. ## Properties
  12. ### **TargetSite**
  13. ```csharp
  14. public MethodBase TargetSite { get; }
  15. ```
  16. #### Property Value
  17. [MethodBase](https://docs.microsoft.com/en-us/dotnet/api/system.reflection.methodbase)<br>
  18. ### **Message**
  19. ```csharp
  20. public string Message { get; }
  21. ```
  22. #### Property Value
  23. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  24. ### **Data**
  25. ```csharp
  26. public IDictionary Data { get; }
  27. ```
  28. #### Property Value
  29. [IDictionary](https://docs.microsoft.com/en-us/dotnet/api/system.collections.idictionary)<br>
  30. ### **InnerException**
  31. ```csharp
  32. public Exception InnerException { get; }
  33. ```
  34. #### Property Value
  35. [Exception](https://docs.microsoft.com/en-us/dotnet/api/system.exception)<br>
  36. ### **HelpLink**
  37. ```csharp
  38. public string HelpLink { get; set; }
  39. ```
  40. #### Property Value
  41. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  42. ### **Source**
  43. ```csharp
  44. public string Source { get; set; }
  45. ```
  46. #### Property Value
  47. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  48. ### **HResult**
  49. ```csharp
  50. public int HResult { get; set; }
  51. ```
  52. #### Property Value
  53. [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  54. ### **StackTrace**
  55. ```csharp
  56. public string StackTrace { get; }
  57. ```
  58. #### Property Value
  59. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>