Skip to main content

extract_model_component

Function extract_model_component 

Source
pub fn extract_model_component(content: &str) -> Option<String>
Expand description

Extract the value inside a <!-- agent:model -->...<!-- /agent:model --> component.

Returns the trimmed inner content if the component is present, None otherwise. This uses the existing component parser, so guards against fenced code blocks and inline code apply automatically.