RkllmCallbackHandler

Trait RkllmCallbackHandler 

Source
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§

Source

fn handle(&mut self, result: Option<RKLLMResult>, state: LLMCallState)

Handles the result and state of an LLM call.

Implementors§