Class AgentCapabilities
java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.AgentCapabilities
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a copy of this AgentCapabilities.booleanCompares this AgentCapabilities with another object for equality.Gets the list of extensions supported by this agent.inthashCode()Generates a hash code for this AgentCapabilities.booleanChecks if the agent supports push notifications.booleanChecks if the agent tracks and provides state transition history.booleanChecks if the agent supports streaming communication.voidsetExtensions(List<AgentExtension> extensions) Sets the list of extensions supported by this agent.voidsetPushNotifications(boolean pushNotifications) Sets whether the agent supports push notifications.voidsetStateTransitionHistory(boolean stateTransitionHistory) Sets whether the agent tracks and provides state transition history.voidsetStreaming(boolean streaming) Sets whether the agent supports streaming communication.
-
Constructor Details
-
AgentCapabilities
public AgentCapabilities()
-
-
Method Details
-
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
Gets the list of extensions supported by this agent.- Returns:
- The list of extensions, or null if not specified
-
setExtensions
Sets the list of extensions supported by this agent.- Parameters:
extensions- The list of extensions, or null if not specified
-
equals
Compares this AgentCapabilities with another object for equality. -
hashCode
public int hashCode()Generates a hash code for this AgentCapabilities.
-