Module: A2A::Operation::Executable

Instance Method Summary collapse

Instance Method Details

#execute(protocol) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/a2a/operation/executable.rb', line 6

def execute(protocol, &)
  if protocol.is_a?(Protocol::HttpJson)
    execute_http_json(protocol, &)
  else
    execute_json_rpc(protocol, &)
  end
end

#execute_http_jsonObject

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/a2a/operation/executable.rb', line 18

def execute_http_json(*)
  raise NotImplementedError, "#{self.class}#execute_http_json is not implemented"
end

#execute_json_rpcObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/a2a/operation/executable.rb', line 14

def execute_json_rpc(*)
  raise NotImplementedError, "#{self.class}#execute_json_rpc is not implemented"
end

#paramsObject

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/a2a/operation/executable.rb', line 22

def params
  raise NotImplementedError, "#{self.class}#params is not implemented"
end