pub trait RkllmCallbackHandler {
// Required method
fn handle(&mut self, result: Option<RKLLMResult>, state: LLMCallState);
}Expand description
Trait for handling callbacks from LLM operations.
Required Methods§
Sourcefn handle(&mut self, result: Option<RKLLMResult>, state: LLMCallState)
fn handle(&mut self, result: Option<RKLLMResult>, state: LLMCallState)
Handles the result and state of an LLM call.