Class ClientOperations
java.lang.Object
com.mulesoft.connectors.a2a.internal.client.operation.ClientOperations
@Throws({BasicOperationErrorTypeProvider.class,JsonRpcErrorTypeProvider.class})
public class ClientOperations
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelTask(A2AClient client, InputStream taskId, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.extension.api.runtime.process.CompletionCallback<String, ResponseAttributes> completionCallback) voidgetCard(A2AClient client, boolean useExtendedCard, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.extension.api.runtime.process.CompletionCallback<String, ResponseAttributes> completionCallback) voidgetTask(A2AClient client, InputStream taskQuery, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.extension.api.runtime.process.CompletionCallback<String, ResponseAttributes> completionCallback) voidsendMessage(A2AClient client, InputStream message, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.extension.api.runtime.process.CompletionCallback<String, ResponseAttributes> completionCallback) voidsendTask(A2AClient client, InputStream task, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.extension.api.runtime.process.CompletionCallback<String, ResponseAttributes> completionCallback)
-
Constructor Details
-
ClientOperations
public ClientOperations()
-
-
Method Details
-
getCard
@Throws({AgentCardErrorTypeProvider.class,BasicOperationErrorTypeProvider.class}) public void getCard(@Connection A2AClient client, @Optional(defaultValue="false") @DisplayName("Use Extended Card") @Summary("When true, fetches the authenticated extended agent card instead of the normal agent card") boolean useExtendedCard, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.extension.api.runtime.process.CompletionCallback<String, ResponseAttributes> completionCallback) -
sendTask
public void sendTask(@Connection A2AClient client, @Content InputStream task, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.extension.api.runtime.process.CompletionCallback<String, ResponseAttributes> completionCallback) -
sendMessage
public void sendMessage(@Connection A2AClient client, @Content InputStream message, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.extension.api.runtime.process.CompletionCallback<String, ResponseAttributes> completionCallback) -
getTask
public void getTask(@Connection A2AClient client, @Content InputStream taskQuery, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.extension.api.runtime.process.CompletionCallback<String, ResponseAttributes> completionCallback) -
cancelTask
public void cancelTask(@Connection A2AClient client, @Content InputStream taskId, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.extension.api.runtime.process.CompletionCallback<String, ResponseAttributes> completionCallback)
-