Class: LLM::A2A::Card::Interface
- Inherits:
-
Object
- Object
- LLM::A2A::Card::Interface
- Defined in:
- lib/llm/a2a/card/interface.rb
Overview
Represents a protocol interface supported by the agent.
Instance Method Summary collapse
-
#initialize(data) ⇒ Interface
constructor
A new instance of Interface.
-
#url ⇒ String
Returns the interface URL.
-
#protocol_binding ⇒ String
Returns the protocol binding name.
-
#protocol_version ⇒ String
Returns the A2A protocol version.
Constructor Details
Instance Method Details
#url ⇒ String
Returns the interface URL.
16 17 18 |
# File 'lib/llm/a2a/card/interface.rb', line 16 def url @data.url end |
#protocol_binding ⇒ String
Returns the protocol binding name.
23 24 25 |
# File 'lib/llm/a2a/card/interface.rb', line 23 def protocol_binding @data.protocolBinding || @data.protocol_binding end |
#protocol_version ⇒ String
Returns the A2A protocol version.
30 31 32 |
# File 'lib/llm/a2a/card/interface.rb', line 30 def protocol_version @data.protocolVersion || @data.protocol_version end |