Class: ClaudeAgentSDK::TaskNotificationMessage

Inherits:
SystemMessage show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

Task notification system message (task completed/failed/stopped)

Instance Attribute Summary collapse

Attributes inherited from SystemMessage

#data, #subtype

Instance Method Summary collapse

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.



450
451
452
453
454
455
456
457
458
459
460
461
# File 'lib/claude_agent_sdk/types.rb', line 450

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_fileObject

Returns the value of attribute output_file.



448
449
450
# File 'lib/claude_agent_sdk/types.rb', line 448

def output_file
  @output_file
end

#session_idObject

Returns the value of attribute session_id.



448
449
450
# File 'lib/claude_agent_sdk/types.rb', line 448

def session_id
  @session_id
end

#statusObject

Returns the value of attribute status.



448
449
450
# File 'lib/claude_agent_sdk/types.rb', line 448

def status
  @status
end

#summaryObject

Returns the value of attribute summary.



448
449
450
# File 'lib/claude_agent_sdk/types.rb', line 448

def summary
  @summary
end

#task_idObject

Returns the value of attribute task_id.



448
449
450
# File 'lib/claude_agent_sdk/types.rb', line 448

def task_id
  @task_id
end

#tool_use_idObject

Returns the value of attribute tool_use_id.



448
449
450
# File 'lib/claude_agent_sdk/types.rb', line 448

def tool_use_id
  @tool_use_id
end

#usageObject

Returns the value of attribute usage.



448
449
450
# File 'lib/claude_agent_sdk/types.rb', line 448

def usage
  @usage
end

#uuidObject

Returns the value of attribute uuid.



448
449
450
# File 'lib/claude_agent_sdk/types.rb', line 448

def uuid
  @uuid
end