Class AgentEndpoint

java.lang.Object
com.tnsai.protocols.models.AgentEndpoint

public final class AgentEndpoint extends Object
Represents an agent endpoint in communication. Combines agentId and optional roleId.

Immutable, thread-safe.

  • Constructor Details

    • AgentEndpoint

      public AgentEndpoint(String agentId)
    • AgentEndpoint

      public AgentEndpoint(String agentId, String roleId)
  • Method Details

    • of

      public static AgentEndpoint of(String agentId)
      Creates endpoint with agent ID only.
    • of

      public static AgentEndpoint of(String agentId, String roleId)
      Creates endpoint with agent ID and role ID.
    • hasRole

      public boolean hasRole()
      Returns true if this endpoint has a role specified.