Class UpdateTaskArtifactOperation
java.lang.Object
com.mulesoft.connectors.a2a.internal.server.operations.UpdateTaskArtifactOperation
Server operation to update task artifacts and broadcast the update to connected SSE clients.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateTaskArtifact(ServerAgent connection, InputStream artifactContent) Updates a task artifact and broadcasts the update to all connected SSE clients.
-
Constructor Details
-
UpdateTaskArtifactOperation
public UpdateTaskArtifactOperation()
-
-
Method Details
-
updateTaskArtifact
@DisplayName("A2A Server - Update Task Artifact") @Throws({JsonRpcErrorTypeProvider.class,StreamingErrorTypeProvider.class,BasicOperationErrorTypeProvider.class}) public void updateTaskArtifact(@Connection ServerAgent connection, @Content @DisplayName("Artifact Update Content") @Summary("TaskArtifactUpdateEvent content following A2A specification") InputStream artifactContent) throws org.mule.runtime.api.exception.MuleException Updates a task artifact and broadcasts the update to all connected SSE clients.- Parameters:
connection- the server agent connectionartifactContent- the TaskArtifactUpdateEvent content following A2A specification- Throws:
org.mule.runtime.api.exception.MuleException- if the operation fails due to parsing errors or broadcasting issues
-