Skip to main content

process_hook

Function process_hook 

Source
pub fn process_hook(
    input_json: &str,
    rtk_rewrite_fn: impl FnOnce(&str) -> Option<String>,
) -> QwenOutput
Expand description

Process a single hook input and return the output.

If rtk_rewrite_fn returns Some, the command is rewritten. Otherwise the original command passes through.