Class: ClaudeAgentSDK::TaskNotificationMessage
- Inherits:
-
SystemMessage
- Object
- SystemMessage
- ClaudeAgentSDK::TaskNotificationMessage
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Task notification system message (task completed/failed/stopped)
Instance Attribute Summary collapse
-
#output_file ⇒ Object
Returns the value of attribute output_file.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#task_id ⇒ Object
Returns the value of attribute task_id.
-
#tool_use_id ⇒ Object
Returns the value of attribute tool_use_id.
-
#usage ⇒ Object
Returns the value of attribute usage.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Attributes inherited from SystemMessage
Instance Method Summary collapse
-
#initialize(subtype:, data:, task_id:, status:, output_file:, summary:, uuid:, session_id:, tool_use_id: nil, usage: nil) ⇒ TaskNotificationMessage
constructor
A new instance of TaskNotificationMessage.
Constructor Details
#initialize(subtype:, data:, task_id:, status:, output_file:, summary:, uuid:, session_id:, tool_use_id: nil, usage: nil) ⇒ TaskNotificationMessage
Returns a new instance of TaskNotificationMessage.
429 430 431 432 433 434 435 436 437 438 439 440 |
# File 'lib/claude_agent_sdk/types.rb', line 429 def initialize(subtype:, data:, task_id:, status:, output_file:, summary:, uuid:, session_id:, tool_use_id: nil, usage: nil) super(subtype: subtype, data: data) @task_id = task_id @status = status @output_file = output_file @summary = summary @uuid = uuid @session_id = session_id @tool_use_id = tool_use_id @usage = usage end |
Instance Attribute Details
#output_file ⇒ Object
Returns the value of attribute output_file.
427 428 429 |
# File 'lib/claude_agent_sdk/types.rb', line 427 def output_file @output_file end |
#session_id ⇒ Object
Returns the value of attribute session_id.
427 428 429 |
# File 'lib/claude_agent_sdk/types.rb', line 427 def session_id @session_id end |
#status ⇒ Object
Returns the value of attribute status.
427 428 429 |
# File 'lib/claude_agent_sdk/types.rb', line 427 def status @status end |
#summary ⇒ Object
Returns the value of attribute summary.
427 428 429 |
# File 'lib/claude_agent_sdk/types.rb', line 427 def summary @summary end |
#task_id ⇒ Object
Returns the value of attribute task_id.
427 428 429 |
# File 'lib/claude_agent_sdk/types.rb', line 427 def task_id @task_id end |
#tool_use_id ⇒ Object
Returns the value of attribute tool_use_id.
427 428 429 |
# File 'lib/claude_agent_sdk/types.rb', line 427 def tool_use_id @tool_use_id end |
#usage ⇒ Object
Returns the value of attribute usage.
427 428 429 |
# File 'lib/claude_agent_sdk/types.rb', line 427 def usage @usage end |
#uuid ⇒ Object
Returns the value of attribute uuid.
427 428 429 |
# File 'lib/claude_agent_sdk/types.rb', line 427 def uuid @uuid end |