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.



393
394
395
396
397
398
399
400
401
402
403
404
# File 'lib/claude_agent_sdk/types.rb', line 393

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.



390
391
392
# File 'lib/claude_agent_sdk/types.rb', line 390

def description
  @description
end

#promptObject

Returns the value of attribute prompt.



390
391
392
# File 'lib/claude_agent_sdk/types.rb', line 390

def prompt
  @prompt
end

#session_idObject

Returns the value of attribute session_id.



390
391
392
# File 'lib/claude_agent_sdk/types.rb', line 390

def session_id
  @session_id
end

#task_idObject

Returns the value of attribute task_id.



390
391
392
# File 'lib/claude_agent_sdk/types.rb', line 390

def task_id
  @task_id
end

#task_typeObject

Returns the value of attribute task_type.



390
391
392
# File 'lib/claude_agent_sdk/types.rb', line 390

def task_type
  @task_type
end

#tool_use_idObject

Returns the value of attribute tool_use_id.



390
391
392
# File 'lib/claude_agent_sdk/types.rb', line 390

def tool_use_id
  @tool_use_id
end

#uuidObject

Returns the value of attribute uuid.



390
391
392
# File 'lib/claude_agent_sdk/types.rb', line 390

def uuid
  @uuid
end

#workflow_nameObject

Returns the value of attribute workflow_name.



390
391
392
# File 'lib/claude_agent_sdk/types.rb', line 390

def workflow_name
  @workflow_name
end