Class RandomRanker

  • All Implemented Interfaces:
    com.embabel.agent.api.common.ranking.Ranker , com.embabel.agent.test.integration.FakeRanker

    
    public final class RandomRanker
     implements FakeRanker
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      RandomRanker()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      <T extends Named, Described> Rankings<T> rank(String description, String userInput, Collection<T> rankables) Rank a set of items based on user input and agent metadata.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RandomRanker

        RandomRanker()
    • Method Detail

      • rank

         <T extends Named, Described> Rankings<T> rank(String description, String userInput, Collection<T> rankables)

        Rank a set of items based on user input and agent metadata.

        Parameters:
        description - Description of the item being ranked
        userInput - User input to rank against
        rankables - Set of items to rank