Interface PromptContributor

  • All Implemented Interfaces:
    com.embabel.common.ai.prompt.PromptElement

    
    public interface PromptContributor
     implements PromptElement
                        

    Contributor to a prompt. Contributors may be put in a system message or elsewhere depending on location. Only the contribution() method must be implemented, but implementations are free to provide location and role data via overriding those properties.

    • 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
      PromptContribution promptContribution()
      abstract String contribution() Return the string content of the contribution.
      • Methods inherited from class com.embabel.common.ai.prompt.PromptElement

        getPromptContributionLocation, getRole
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait