agent2agentSourceA2AStoreWebhooks

class Webhooks

Async webhook delivery for A2A push notifications.

Following the gospel (async-http):

The A2A spec says:

Definitions

def deliver(configs, payload)

Deliver a payload to all push notification configs for a task.

Signature

parameter configs Array(Hash)

push notification configs

parameter payload Hash

the StreamResponse payload

Implementation

def deliver(configs, payload)
  return if configs.nil? || configs.empty?

  configs.each do |config|
    Async do
      deliver_single(config, payload)
    rescue => e
      Console.error(self, "Webhook delivery failed for #{config["url"]}", e)
    end
  end
end