Class: LLM::A2A::Card::Provider

Inherits:
Object
  • Object
show all
Defined in:
lib/llm/a2a/card/provider.rb

Overview

Represents the service provider of an agent.

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Provider

Returns a new instance of Provider.

Parameters:

  • data (Hash)


9
10
11
# File 'lib/llm/a2a/card/provider.rb', line 9

def initialize(data)
  @data = LLM::Object.from(data)
end

Instance Method Details

#urlString

Returns the provider website URL.

Returns:

  • (String)


16
17
18
# File 'lib/llm/a2a/card/provider.rb', line 16

def url
  @data.url
end

#organizationString

Returns the provider organization name.

Returns:

  • (String)


23
24
25
# File 'lib/llm/a2a/card/provider.rb', line 23

def organization
  @data.organization
end