extract_intent_from_response

Function extract_intent_from_response 

Source
pub fn extract_intent_from_response<T>(
    response: &str,
    tag: &str,
) -> Result<T, IntentExtractionError>
where T: FromStr, T::Err: Display,
Expand description

Helper function for extracting intents from LLM responses using XML-style tags. This is used by the define_intent macro.