Skip to main content

parse_chat_template_raw_result

Function parse_chat_template_raw_result 

Source
pub unsafe fn parse_chat_template_raw_result(
    ffi_return_code: llama_rs_status,
    raw_result: *mut llama_rs_chat_template_result,
    parse_tool_calls: bool,
) -> Result<ChatTemplateResult, ApplyChatTemplateError>
Expand description

§Safety

raw_result must point to a valid, initialized llama_rs_chat_template_result.

§Errors

Returns ApplyChatTemplateError if the FFI call failed or the result could not be parsed.