pub fn replace_outer_slice(
slices: Vec<OnionSlice>,
new_outer_content: String,
) -> Vec<OnionSlice>Expand description
Replace the outer slice in a four-layer (or outer+core) onion stack with a
new content string, regenerating the outer ID and patching the parent’s
children_ids so the hierarchy stays internally consistent.
Used by the async slicers when OuterSynthesis::Llm produces a summary
that should override the keyword outer. If slices contains no Outer
layer, the input is returned unchanged.