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.
|
- using LLama.Abstractions;
- using System.Collections.Generic;
-
- namespace LLama.Native
- {
- /// <summary>
- /// A native library specified with a lcoal file path.
- /// </summary>
- public class NativeLibraryFromPath: INativeLibrary
- {
- private string _path;
-
- /// <inheritdoc/>
- public NativeLibraryMetadata? Metadata => null;
-
- /// <summary>
- ///
- /// </summary>
- /// <param name="path"></param>
- public NativeLibraryFromPath(string path)
- {
- _path = path;
- }
-
- /// <inheritdoc/>
- public IEnumerable<string> Prepare(SystemInfo systemInfo, NativeLogConfig.LLamaLogCallback? logCallback)
- {
- return [_path];
- }
- }
- }
|