Skip to main content

augment_prompt_with_errors

Function augment_prompt_with_errors 

Source
pub fn augment_prompt_with_errors(
    prompt: &str,
    errors: &[ValidationError],
) -> String
Expand description

Appends the errors from a failed attempt to the prompt for the next one.