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.



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_fileObject

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_idObject

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

#statusObject

Returns the value of attribute status.



427
428
429
# File 'lib/claude_agent_sdk/types.rb', line 427

def status
  @status
end

#summaryObject

Returns the value of attribute summary.



427
428
429
# File 'lib/claude_agent_sdk/types.rb', line 427

def summary
  @summary
end

#task_idObject

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_idObject

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

#usageObject

Returns the value of attribute usage.



427
428
429
# File 'lib/claude_agent_sdk/types.rb', line 427

def usage
  @usage
end

#uuidObject

Returns the value of attribute uuid.



427
428
429
# File 'lib/claude_agent_sdk/types.rb', line 427

def uuid
  @uuid
end