StyledLines from testedlines.com: C# docs 1.0.1
GPT2-based text stylization LLM model, wrapped with Llama.cpp in Csharp to ensure compatibility across various platforms, including iOS and WebGL. The model is designed to transform generic texts into stylized, game or user-tailored dialogue.
Loading...
Searching...
No Matches
LlamaLibrary.LlamaInfrence Class Reference
+ Inheritance diagram for LlamaLibrary.LlamaInfrence:
+ Collaboration diagram for LlamaLibrary.LlamaInfrence:

Public Member Functions

virtual void Dispose ()
 
void Echo (string arg0)
 
bool Generate (string prompt)
 
string GetGenerated ()
 
 LlamaInfrence (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 LlamaInfrence (LoggingContext logging, gpt_params cfg_params)
 
void Stop ()
 

Static Public Member Functions

static gpt_params GetParameters (string llamacpp_cmd_args)
 

Protected Attributes

bool swigCMemOwn
 

Static Package Functions

static global::System.Runtime.InteropServices.HandleRef getCPtr (LlamaInfrence obj)
 

Properties

SWIGTYPE_p_LlamaInfrence__LlamaImpl pImpl [get, set]
 

Private Member Functions

 ~LlamaInfrence ()
 

Private Attributes

global::System.Runtime.InteropServices.HandleRef swigCPtr
 

Constructor & Destructor Documentation

◆ LlamaInfrence() [1/2]

LlamaLibrary.LlamaInfrence.LlamaInfrence ( global::System::IntPtr cPtr,
bool cMemoryOwn )

◆ ~LlamaInfrence()

LlamaLibrary.LlamaInfrence.~LlamaInfrence ( )
private

References LlamaLibrary.LlamaInfrence.Dispose().

+ Here is the call graph for this function:

◆ LlamaInfrence() [2/2]

LlamaLibrary.LlamaInfrence.LlamaInfrence ( LoggingContext logging,
gpt_params cfg_params )

References LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Pending, and LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Retrieve().

+ Here is the call graph for this function:

Member Function Documentation

◆ Dispose()

virtual void LlamaLibrary.LlamaInfrence.Dispose ( )
virtual

References LlamaLibrary.libllama_libPINVOKE.delete_LlamaInfrence(), LlamaLibrary.LlamaInfrence.swigCMemOwn, and LlamaLibrary.LlamaInfrence.swigCPtr.

Referenced by LlamaLibrary.LlamaInfrence.~LlamaInfrence().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Echo()

void LlamaLibrary.LlamaInfrence.Echo ( string arg0)

References LlamaLibrary.libllama_libPINVOKE.LlamaInfrence_Echo(), LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Pending, LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Retrieve(), and LlamaLibrary.LlamaInfrence.swigCPtr.

+ Here is the call graph for this function:

◆ Generate()

bool LlamaLibrary.LlamaInfrence.Generate ( string prompt)

References LlamaLibrary.libllama_libPINVOKE.LlamaInfrence_Generate(), LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Pending, LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Retrieve(), and LlamaLibrary.LlamaInfrence.swigCPtr.

+ Here is the call graph for this function:

◆ getCPtr()

static global.System.Runtime.InteropServices.HandleRef LlamaLibrary.LlamaInfrence.getCPtr ( LlamaInfrence obj)
staticpackage

◆ GetGenerated()

string LlamaLibrary.LlamaInfrence.GetGenerated ( )

References LlamaLibrary.libllama_libPINVOKE.LlamaInfrence_GetGenerated(), and LlamaLibrary.LlamaInfrence.swigCPtr.

+ Here is the call graph for this function:

◆ GetParameters()

static gpt_params LlamaLibrary.LlamaInfrence.GetParameters ( string llamacpp_cmd_args)
static

References LlamaLibrary.libllama_libPINVOKE.LlamaInfrence_GetParameters(), LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Pending, and LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Retrieve().

+ Here is the call graph for this function:

◆ Stop()

void LlamaLibrary.LlamaInfrence.Stop ( )

References LlamaLibrary.libllama_libPINVOKE.LlamaInfrence_Stop(), and LlamaLibrary.LlamaInfrence.swigCPtr.

+ Here is the call graph for this function:

Member Data Documentation

◆ swigCMemOwn

bool LlamaLibrary.LlamaInfrence.swigCMemOwn
protected

◆ swigCPtr

Property Documentation

◆ pImpl

SWIGTYPE_p_LlamaInfrence__LlamaImpl LlamaLibrary.LlamaInfrence.pImpl
getset

The documentation for this class was generated from the following file: