Class: ClaudeAgentSDK::TaskStartedMessage

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

Overview

Task started system message (subagent/background task started)

Instance Attribute Summary collapse

Attributes inherited from SystemMessage

#data, #subtype

Instance Method Summary collapse

Constructor Details

#initialize(subtype:, data:, task_id:, description:, uuid:, session_id:, tool_use_id: nil, task_type: nil, workflow_name: nil, prompt: nil) ⇒ TaskStartedMessage

Returns a new instance of TaskStartedMessage.



414
415
416
417
418
419
420
421
422
423
424
425
# File 'lib/claude_agent_sdk/types.rb', line 414

def initialize(subtype:, data:, task_id:, description:, uuid:, session_id:,
               tool_use_id: nil, task_type: nil, workflow_name: nil, prompt: nil)
  super(subtype: subtype, data: data)
  @task_id = task_id
  @description = description
  @uuid = uuid
  @session_id = session_id
  @tool_use_id = tool_use_id
  @task_type = task_type
  @workflow_name = workflow_name
  @prompt = prompt
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



411
412
413
# File 'lib/claude_agent_sdk/types.rb', line 411

def description
  @description
end

#promptObject

Returns the value of attribute prompt.



411
412
413
# File 'lib/claude_agent_sdk/types.rb', line 411

def prompt
  @prompt
end

#session_idObject

Returns the value of attribute session_id.



411
412
413
# File 'lib/claude_agent_sdk/types.rb', line 411

def session_id
  @session_id
end

#task_idObject

Returns the value of attribute task_id.



411
412
413
# File 'lib/claude_agent_sdk/types.rb', line 411

def task_id
  @task_id
end

#task_typeObject

Returns the value of attribute task_type.



411
412
413
# File 'lib/claude_agent_sdk/types.rb', line 411

def task_type
  @task_type
end

#tool_use_idObject

Returns the value of attribute tool_use_id.



411
412
413
# File 'lib/claude_agent_sdk/types.rb', line 411

def tool_use_id
  @tool_use_id
end

#uuidObject

Returns the value of attribute uuid.



411
412
413
# File 'lib/claude_agent_sdk/types.rb', line 411

def uuid
  @uuid
end

#workflow_nameObject

Returns the value of attribute workflow_name.



411
412
413
# File 'lib/claude_agent_sdk/types.rb', line 411

def workflow_name
  @workflow_name
end