Skip to content

< Back


INativeLibrary

Namespace: LLama.Abstractions

Descriptor of a native library.

1
public interface INativeLibrary

Attributes NullableContextAttribute

Properties

Metadata

Metadata of this library.

1
public abstract NativeLibraryMetadata Metadata { get; }

Property Value

NativeLibraryMetadata

Methods

Prepare(SystemInfo, LLamaLogCallback)

Prepare the native library file and returns the local path of it. If it's a relative path, LLamaSharp will search the path in the search directies you set.

1
IEnumerable<string> Prepare(SystemInfo systemInfo, LLamaLogCallback logCallback)

Parameters

systemInfo SystemInfo
The system information of the current machine.

logCallback LLamaLogCallback
The log callback.

Returns

IEnumerable<String>
The relative paths of the library. You could return multiple paths to try them one by one. If no file is available, please return an empty array.


< Back