Class AgentCapabilities

java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.AgentCapabilities

public class AgentCapabilities extends Object
Represents the technical capabilities of an agent within the A2A protocol.

This class defines the advanced interaction capabilities that an agent supports, such as streaming, push notifications, state transition history tracking, and extensions.

Since:
1.0.0
  • Constructor Details

    • AgentCapabilities

      public AgentCapabilities()
  • Method Details

    • copy

      public AgentCapabilities copy()
      Creates a copy of this AgentCapabilities.
      Returns:
      A new AgentCapabilities instance with the same values as this one
    • isStreaming

      public boolean isStreaming()
      Checks if the agent supports streaming communication.
      Returns:
      true if streaming is supported, false otherwise
    • setStreaming

      public void setStreaming(boolean streaming)
      Sets whether the agent supports streaming communication.
      Parameters:
      streaming - true if streaming is supported, false otherwise
    • isPushNotifications

      public boolean isPushNotifications()
      Checks if the agent supports push notifications.
      Returns:
      true if push notifications are supported, false otherwise
    • setPushNotifications

      public void setPushNotifications(boolean pushNotifications)
      Sets whether the agent supports push notifications.
      Parameters:
      pushNotifications - true if push notifications are supported, false otherwise
    • isStateTransitionHistory

      public boolean isStateTransitionHistory()
      Checks if the agent tracks and provides state transition history.
      Returns:
      true if state transition history is supported, false otherwise
    • setStateTransitionHistory

      public void setStateTransitionHistory(boolean stateTransitionHistory)
      Sets whether the agent tracks and provides state transition history.
      Parameters:
      stateTransitionHistory - true if state transition history is supported, false otherwise
    • getExtensions

      public List<AgentExtension> getExtensions()
      Gets the list of extensions supported by this agent.
      Returns:
      The list of extensions, or null if not specified
    • setExtensions

      public void setExtensions(List<AgentExtension> extensions)
      Sets the list of extensions supported by this agent.
      Parameters:
      extensions - The list of extensions, or null if not specified
    • equals

      public boolean equals(Object object)
      Compares this AgentCapabilities with another object for equality.
      Overrides:
      equals in class Object
      Parameters:
      object - The object to compare with
      Returns:
      true if the objects are equal, false otherwise
    • hashCode

      public int hashCode()
      Generates a hash code for this AgentCapabilities.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this object