Class: A2A::Protocol::AgentCardServer::Config
- Inherits:
-
Object
- Object
- A2A::Protocol::AgentCardServer::Config
- Defined in:
- lib/a2a/protocol/agent_card_server.rb
Overview
Configuration for the agent card server
Instance Attribute Summary collapse
-
#cache_ttl ⇒ Object
Returns the value of attribute cache_ttl.
-
#card_modification_callback ⇒ Object
Returns the value of attribute card_modification_callback.
-
#default_protocol_version ⇒ Object
Returns the value of attribute default_protocol_version.
-
#enable_authenticated_extended_cards ⇒ Object
Returns the value of attribute enable_authenticated_extended_cards.
-
#enable_signatures ⇒ Object
Returns the value of attribute enable_signatures.
-
#signing_algorithm ⇒ Object
Returns the value of attribute signing_algorithm.
-
#signing_key ⇒ Object
Returns the value of attribute signing_key.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
41 42 43 44 45 46 47 48 49 |
# File 'lib/a2a/protocol/agent_card_server.rb', line 41 def initialize @cache_ttl = 300 # 5 minutes @enable_signatures = false @signing_key = nil @signing_algorithm = "RS256" @default_protocol_version = "1.0" @enable_authenticated_extended_cards = false @card_modification_callback = nil end |
Instance Attribute Details
#cache_ttl ⇒ Object
Returns the value of attribute cache_ttl.
37 38 39 |
# File 'lib/a2a/protocol/agent_card_server.rb', line 37 def cache_ttl @cache_ttl end |
#card_modification_callback ⇒ Object
Returns the value of attribute card_modification_callback.
37 38 39 |
# File 'lib/a2a/protocol/agent_card_server.rb', line 37 def card_modification_callback @card_modification_callback end |
#default_protocol_version ⇒ Object
Returns the value of attribute default_protocol_version.
37 38 39 |
# File 'lib/a2a/protocol/agent_card_server.rb', line 37 def default_protocol_version @default_protocol_version end |
#enable_authenticated_extended_cards ⇒ Object
Returns the value of attribute enable_authenticated_extended_cards.
37 38 39 |
# File 'lib/a2a/protocol/agent_card_server.rb', line 37 def enable_authenticated_extended_cards @enable_authenticated_extended_cards end |
#enable_signatures ⇒ Object
Returns the value of attribute enable_signatures.
37 38 39 |
# File 'lib/a2a/protocol/agent_card_server.rb', line 37 def enable_signatures @enable_signatures end |
#signing_algorithm ⇒ Object
Returns the value of attribute signing_algorithm.
37 38 39 |
# File 'lib/a2a/protocol/agent_card_server.rb', line 37 def signing_algorithm @signing_algorithm end |
#signing_key ⇒ Object
Returns the value of attribute signing_key.
37 38 39 |
# File 'lib/a2a/protocol/agent_card_server.rb', line 37 def signing_key @signing_key end |