Class: A2A::Protocol::AgentCardServer::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/a2a/protocol/agent_card_server.rb

Overview

Configuration for the agent card server

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_ttlObject

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_callbackObject

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_versionObject

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_cardsObject

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_signaturesObject

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_algorithmObject

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_keyObject

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