Module: A2A::Operation::Executable
- Included in:
- CancelTask, CreateTaskPushNotificationConfig, DeleteTaskPushNotificationConfig, GetExtendedAgentCard, GetTask, GetTaskPushNotificationConfig, ListTaskPushNotificationConfigs, ListTasks, SendMessage, SendStreamingMessage, SubscribeToTask
- Defined in:
- lib/a2a/operation/executable.rb
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_json ⇒ Object
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_rpc ⇒ Object
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 |
#params ⇒ Object
22 23 24 |
# File 'lib/a2a/operation/executable.rb', line 22 def params raise NotImplementedError, "#{self.class}#params is not implemented" end |