Class: LLM::A2A::Notifications
- Inherits:
-
Object
- Object
- LLM::A2A::Notifications
- Defined in:
- lib/llm/a2a/notifications.rb
Overview
Groups push notification configuration operations.
Instance Method Summary collapse
-
#initialize(a2a) ⇒ Notifications
constructor
A new instance of Notifications.
-
#create(task_id, url:, token: nil, authentication: nil, id: nil) ⇒ LLM::Object
Creates a push notification configuration for a task.
-
#get(task_id, id) ⇒ LLM::Object
Retrieves a push notification configuration for a task.
-
#list(task_id, page_size: nil, page_token: nil) ⇒ LLM::Object
Lists push notification configurations for a task.
-
#delete(task_id, id) ⇒ LLM::Object
Deletes a push notification configuration for a task.
Constructor Details
#initialize(a2a) ⇒ Notifications
Returns a new instance of Notifications.
9 10 11 |
# File 'lib/llm/a2a/notifications.rb', line 9 def initialize(a2a) @a2a = a2a end |
Instance Method Details
#create(task_id, url:, token: nil, authentication: nil, id: nil) ⇒ LLM::Object
Creates a push notification configuration for a task.
21 22 23 |
# File 'lib/llm/a2a/notifications.rb', line 21 def create(task_id, url:, token: nil, authentication: nil, id: nil) @a2a.create_task_push_notification_config(task_id, url:, token:, authentication:, id:) end |
#get(task_id, id) ⇒ LLM::Object
Retrieves a push notification configuration for a task.
30 31 32 |
# File 'lib/llm/a2a/notifications.rb', line 30 def get(task_id, id) @a2a.get_task_push_notification_config(task_id, id) end |
#list(task_id, page_size: nil, page_token: nil) ⇒ LLM::Object
Lists push notification configurations for a task.
40 41 42 |
# File 'lib/llm/a2a/notifications.rb', line 40 def list(task_id, page_size: nil, page_token: nil) @a2a.list_task_push_notification_configs(task_id, page_size:, page_token:) end |
#delete(task_id, id) ⇒ LLM::Object
Deletes a push notification configuration for a task.
49 50 51 |
# File 'lib/llm/a2a/notifications.rb', line 49 def delete(task_id, id) @a2a.delete_task_push_notification_config(task_id, id) end |