Class AgiUserMessage

All Implemented Interfaces:
PropertyChangeSource, Rebindable

public class AgiUserMessage extends UserMessage
A specialized UserMessage representing intent originated by another AGI session within the same ASI container.
Author:
anahata
  • Field Details

    • spawningAgiUuid

      private final String spawningAgiUuid
      The UUID of the AGI session that originated this message.
  • Constructor Details

    • AgiUserMessage

      public AgiUserMessage(Agi agi, String spawningAgiUuid)
      Constructs a new AgiUserMessage.
      Parameters:
      agi - The target session that will receive the message.
      spawningAgiUuid - The UUID of the session sending the message.
  • Method Details

    • getFrom

      public String getFrom()
      Gets the identity of the sender of this message. For user messages, this is typically the user's name. For model messages, it's the model ID. For tool messages, it's the identity of the execution context.

      Returns the user's identity formatted as 'username@device'.

      Returns the origin formatted as 'spawningUuid@containerId'.

      Overrides:
      getFrom in class UserMessage
      Returns:
      The sender's identity.