Class A2AUtils
java.lang.Object
com.mulesoft.connectors.a2a.internal.util.A2AUtils
-
Method Summary
Modifier and TypeMethodDescriptionCreates an immutable copy of a MultiMap.static booleanisFinalEvent(io.a2a.spec.StreamingEventKind eventData) Checks if sse event data represents a final TaskStatusUpdateEvent using A2A SDK.static org.mule.runtime.http.api.domain.message.request.HttpRequestBuildernewRequestBuilder(org.mule.extension.http.api.request.authentication.HttpRequestAuthentication authentication)
-
Method Details
-
copy
public static org.mule.runtime.api.util.MultiMap<String,String> copy(org.mule.runtime.api.util.MultiMap<String, String> map) Creates an immutable copy of a MultiMap.- Parameters:
map- The MultiMap to copy- Returns:
- An immutable copy of the input map, or an empty map if the input is null
-
newRequestBuilder
public static org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder newRequestBuilder(org.mule.extension.http.api.request.authentication.HttpRequestAuthentication authentication) -
isFinalEvent
public static boolean isFinalEvent(io.a2a.spec.StreamingEventKind eventData) Checks if sse event data represents a final TaskStatusUpdateEvent using A2A SDK. Only TaskStatusUpdateEvent can have a final field.
-