Class AIMessageWithSource

All Implemented Interfaces:
HasHandlers

public class AIMessageWithSource extends AIMessage
  • Constructor Details

    • AIMessageWithSource

      public AIMessageWithSource()
    • AIMessageWithSource

      public AIMessageWithSource(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static AIMessageWithSource getOrCreateRef(JavaScriptObject jsObj)
    • setSource

      public AIMessageWithSource setSource(AIMessageSource source)
      The source or producer of the message. If unspecified, "user" is assumed.
      Parameters:
      source - New source value. Default value is "user"
      Returns:
      AIMessageWithSource instance, for chaining setter calls
    • getSource

      public AIMessageSource getSource()
      The source or producer of the message. If unspecified, "user" is assumed.
      Returns:
      Current source value. Default value is "user"