Module prelude

Module prelude 

Source

Re-exports§

pub use super::RKLLMExtendParam;
pub use super::RKLLMLoraParam;
pub use super::RKLLMParam;
pub use super::RKLLMResultLastHiddenLayer;

Structs§

InstanceData
Internal structure to hold the callback handler.
LLMHandle
Handle to an LLM instance.
RKLLMInferParam
Structure for defining parameters during inference.
RKLLMInput
Represents different types of input that can be provided to the LLM.
RKLLMLoraAdapter
RKLLMPromptCacheParam
Structure to define parameters for caching prompts.
RKLLMResult
Represents the result of an LLM inference.

Enums§

KeepHistory
LLMCallState
Represents the state of an LLM call.
RKLLMInferMode
Defines the inference mode for the LLM.
RKLLMInputRole
The role of the user providing the input.
RKLLMInputType
The type of input being provided to the LLM.

Traits§

RkllmCallbackHandler
Trait for handling callbacks from LLM operations.

Functions§

rkllm_init
Initializes the LLM with the given parameters.