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.extensions.icontextparamsextensions.md 955 B

123456789101112131415161718192021222324252627282930313233
  1. # IContextParamsExtensions
  2. Namespace: LLama.Extensions
  3. Extention methods to the IContextParams interface
  4. ```csharp
  5. public static class IContextParamsExtensions
  6. ```
  7. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [IContextParamsExtensions](./llama.extensions.icontextparamsextensions.md)
  8. ## Methods
  9. ### **ToLlamaContextParams(IContextParams, LLamaContextParams&)**
  10. Convert the given `IModelParams` into a `LLamaContextParams`
  11. ```csharp
  12. public static void ToLlamaContextParams(IContextParams params, LLamaContextParams& result)
  13. ```
  14. #### Parameters
  15. `params` [IContextParams](./llama.abstractions.icontextparams.md)<br>
  16. `result` [LLamaContextParams&](./llama.native.llamacontextparams&.md)<br>
  17. #### Exceptions
  18. [FileNotFoundException](https://docs.microsoft.com/en-us/dotnet/api/system.io.filenotfoundexception)<br>
  19. [ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentexception)<br>