Module: A2A::Server::A2AMethods::ClassMethods
- Defined in:
- lib/a2a/server/a2a_methods.rb
Instance Method Summary collapse
-
#register_a2a_methods ⇒ Object
Register all standard A2A protocol methods.
Instance Method Details
#register_a2a_methods ⇒ Object
Register all standard A2A protocol methods
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/a2a/server/a2a_methods.rb', line 27 def register_a2a_methods # Core messaging methods a2a_method "message/send" do |params, context| (params, context) end a2a_method "message/stream", streaming: true do |params, context| (params, context) end # Task management methods a2a_method "tasks/get" do |params, context| handle_tasks_get(params, context) end a2a_method "tasks/cancel" do |params, context| handle_tasks_cancel(params, context) end a2a_method "tasks/resubscribe", streaming: true do |params, context| handle_tasks_resubscribe(params, context) end # Push notification methods a2a_method "tasks/pushNotificationConfig/set" do |params, context| handle_push_notification_config_set(params, context) end a2a_method "tasks/pushNotificationConfig/get" do |params, context| handle_push_notification_config_get(params, context) end a2a_method "tasks/pushNotificationConfig/list" do |params, context| handle_push_notification_config_list(params, context) end a2a_method "tasks/pushNotificationConfig/delete" do |params, context| handle_push_notification_config_delete(params, context) end # Agent card methods a2a_method "agent/getCard" do |params, context| handle_agent_get_card(params, context) end a2a_method "agent/getAuthenticatedExtendedCard" do |params, context| handle_agent_get_authenticated_extended_card(params, context) end end |