def parse_evaluation_response(message: BaseMessage) -> Dict[str, str]:
    """
    Parse the reason and rating from the call to determine if the conversation reaches the
    expected outcome
    """
    response = AgentOutputParser.load_json_output(message)
    return {
        "rating": response.get("rating"),
        "reason": response.get("reason"),
    }

    Parse the reason and rating from the call to determine if the conversation reaches the
    expected outcome
    
autochain/workflows_evaluation/test_utils.py