Interface Conversation

  • All Implemented Interfaces:
    com.embabel.common.core.Identified , com.embabel.common.core.StableIdentified , com.embabel.common.core.types.HasInfoString

    
    public interface Conversation
     implements StableIdentified, HasInfoString
                        

    Conversation shim for agent system. Mutable.

    • 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
      UserMessage lastMessageIfBeFromUser() Non-null if the conversation has messages and the last message is from the user.
      abstract Conversation addMessage(Message message) Modify the state of this conversation This method is mutable, and returns itself only for convenience
      PromptContributor promptContributor(ConversationFormatter conversationFormatter) Prompt contributor that represents the conversation so far.
      String infoString(Boolean verbose, Integer indent)
      abstract List<Message> getMessages()
      • Methods inherited from class com.embabel.common.core.Identified

        persistent
      • Methods inherited from class com.embabel.common.core.StableIdentified

        getId
      • Methods inherited from class java.lang.Object

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