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 Message addMessage(Message message) Modify the state of this conversation Return the newly added message for convenience
      PromptContributor promptContributor(ConversationFormatter conversationFormatter) Prompt contributor that represents the conversation so far.
      String infoString(Boolean verbose, Integer indent)
      abstract Conversation last(Integer n) Create a nonpersistent conversation with the last n messages from this conversation.
      abstract List<Message> getMessages() Messages in the conversation in chronological order.
      abstract AssetTracker getAssetTracker() Assets tracked in the conversation.
      • 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