Skip to main content

agent_doc_apply_patch

Function agent_doc_apply_patch 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn agent_doc_apply_patch( doc: *const c_char, component_name: *const c_char, content: *const c_char, mode: *const c_char, ) -> FfiPatchResult
Expand description

Apply a patch to a document component.

mode must be one of: "replace", "append", "prepend".

ยงSafety

All string pointers must be valid, NUL-terminated UTF-8.