Package 

Enum MessageRole

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum MessageRole
    extends Enum<MessageRole>
                        

    The role of a participant in a chat conversation.

    In human-to-human messengers, map the device owner to USER and the other participant to ASSISTANT — only the split between "this user" and "the other side" matters for contextual targeting.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      SUMMARY

      A condensed description of the conversation so far, sent in place of the full history — typically one SUMMARY message followed by the most recent USER / ASSISTANT exchange.

      ASSISTANT

      The other side of the conversation — an AI assistant, or the other human in a peer-to-peer chat.

      USER

      The device owner: the person the ad will be shown to.

    • Method Summary

      Modifier and Type Method Description
      final String getName()
      final Integer getOrdinal()
      • Methods inherited from class java.lang.Object

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