Class: A2A::Server::App
- Inherits:
-
Roda
- Object
- Roda
- A2A::Server::App
- 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
-
.agent_card ⇒ Object
readonly
Returns the value of attribute agent_card.
-
.broadcast_registry ⇒ Object
readonly
Returns the value of attribute broadcast_registry.
-
.executor ⇒ Object
readonly
Returns the value of attribute executor.
-
.push_config_store ⇒ Object
readonly
Returns the value of attribute push_config_store.
-
.push_sender ⇒ Object
readonly
Returns the value of attribute push_sender.
-
.storage ⇒ Object
readonly
Returns the value of attribute storage.
Class Method Summary collapse
Class Attribute Details
.agent_card ⇒ Object (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_registry ⇒ Object (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 |
.executor ⇒ Object (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_store ⇒ Object (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_sender ⇒ Object (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 |
.storage ⇒ Object (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 |