taskResubscription

Configures the behavior of the mocking server to handle Resubscribe to a Task requests.

This method simulates the behavior of the A2A's Resubscribe to a Task endpoint. It allows defining how the server should respond to a "task resubscription" JsonRPC request by chaining a response configuration using the responds method of the returned TaskResubscriptionBuildingStep.

Example usage:

// Configure the mock server to respond with task updates
a2aServer.taskResubscription() responds {
responseFlow = flow {
emit(
taskStatusUpdateEvent {
id = "task_12345"
status {
state = "completed"
timestamp = System.now()
}
final = true
}
)
}
}

Return

An instance of TaskResubscriptionBuildingStep to define the response behavior for task resubscription requests.

Parameters

name

An optional identifier for the configured request.