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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.agent_cardObject (readonly)

Returns the value of attribute agent_card.



25
26
27
# File 'lib/simple_a2a/server/app.rb', line 25

def agent_card
  @agent_card
end

.event_routerObject (readonly)

Returns the value of attribute event_router.



25
26
27
# File 'lib/simple_a2a/server/app.rb', line 25

def event_router
  @event_router
end

.executorObject (readonly)

Returns the value of attribute executor.



25
26
27
# File 'lib/simple_a2a/server/app.rb', line 25

def executor
  @executor
end

.push_senderObject (readonly)

Returns the value of attribute push_sender.



25
26
27
# File 'lib/simple_a2a/server/app.rb', line 25

def push_sender
  @push_sender
end

.storageObject (readonly)

Returns the value of attribute storage.



25
26
27
# File 'lib/simple_a2a/server/app.rb', line 25

def storage
  @storage
end

Class Method Details

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



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

def self.configure(agent_card:, storage:, executor:, event_router:, push_sender: nil)
  @agent_card   = agent_card
  @storage      = storage
  @executor     = executor
  @event_router = event_router
  @push_sender  = push_sender
end