Interface LanguageModel

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Response<String> generate(String prompt) Generate a response to the given prompt.
      Response<String> generate(Prompt prompt) Generate a response to the given prompt.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • generate

         abstract Response<String> generate(String prompt)

        Generate a response to the given prompt.

        Parameters:
        prompt - the prompt.
        Returns:

        the response.

      • generate

         Response<String> generate(Prompt prompt)

        Generate a response to the given prompt.

        Parameters:
        prompt - the prompt.
        Returns:

        the response.