Class: A2A::Server::App

Inherits:
Roda
  • Object
show all
Defined in:
lib/simple_a2a/server/app.rb

Constant Summary collapse

SUPPORTED_VERSIONS =
%w[1.0 0.3].freeze
SSE_METHODS =
%w[tasks/sendSubscribe tasks/resubscribe].freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.agent_cardObject (readonly)

Returns the value of attribute agent_card.



27
28
29
# File 'lib/simple_a2a/server/app.rb', line 27

def agent_card
  @agent_card
end

.broadcast_registryObject (readonly)

Returns the value of attribute broadcast_registry.



27
28
29
# File 'lib/simple_a2a/server/app.rb', line 27

def broadcast_registry
  @broadcast_registry
end

.executorObject (readonly)

Returns the value of attribute executor.



27
28
29
# File 'lib/simple_a2a/server/app.rb', line 27

def executor
  @executor
end

.push_config_storeObject (readonly)

Returns the value of attribute push_config_store.



27
28
29
# File 'lib/simple_a2a/server/app.rb', line 27

def push_config_store
  @push_config_store
end

.push_senderObject (readonly)

Returns the value of attribute push_sender.



27
28
29
# File 'lib/simple_a2a/server/app.rb', line 27

def push_sender
  @push_sender
end

.storageObject (readonly)

Returns the value of attribute storage.



27
28
29
# File 'lib/simple_a2a/server/app.rb', line 27

def storage
  @storage
end

Class Method Details

.configure(agent_card:, storage:, executor:, broadcast_registry:, push_sender: nil, push_config_store: nil) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/simple_a2a/server/app.rb', line 17

def self.configure(agent_card:, storage:, executor:, broadcast_registry:, push_sender: nil, push_config_store: nil)
  @agent_card         = agent_card
  @storage            = storage
  @executor           = executor
  @broadcast_registry = broadcast_registry
  @push_sender        = push_sender
  @push_config_store  = push_config_store || PushConfigStore.new
end