Class: ClaudeAgentSDK::TaskCreatedHookInput

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

Overview

TaskCreated hook input

Instance Attribute Summary collapse

Attributes inherited from BaseHookInput

#cwd, #permission_mode, #session_id, #transcript_path

Instance Method Summary collapse

Constructor Details

#initialize(hook_event_name: 'TaskCreated', task_id: nil, task_subject: nil, task_description: nil, teammate_name: nil, team_name: nil, **base_args) ⇒ TaskCreatedHookInput

Returns a new instance of TaskCreatedHookInput.



1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
# File 'lib/claude_agent_sdk/types.rb', line 1036

def initialize(hook_event_name: 'TaskCreated', task_id: nil, task_subject: nil, task_description: nil,
               teammate_name: nil, team_name: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @task_id = task_id
  @task_subject = task_subject
  @task_description = task_description
  @teammate_name = teammate_name
  @team_name = team_name
end

Instance Attribute Details

#hook_event_nameObject

Returns the value of attribute hook_event_name.



1034
1035
1036
# File 'lib/claude_agent_sdk/types.rb', line 1034

def hook_event_name
  @hook_event_name
end

#task_descriptionObject

Returns the value of attribute task_description.



1034
1035
1036
# File 'lib/claude_agent_sdk/types.rb', line 1034

def task_description
  @task_description
end

#task_idObject

Returns the value of attribute task_id.



1034
1035
1036
# File 'lib/claude_agent_sdk/types.rb', line 1034

def task_id
  @task_id
end

#task_subjectObject

Returns the value of attribute task_subject.



1034
1035
1036
# File 'lib/claude_agent_sdk/types.rb', line 1034

def task_subject
  @task_subject
end

#team_nameObject

Returns the value of attribute team_name.



1034
1035
1036
# File 'lib/claude_agent_sdk/types.rb', line 1034

def team_name
  @team_name
end

#teammate_nameObject

Returns the value of attribute teammate_name.



1034
1035
1036
# File 'lib/claude_agent_sdk/types.rb', line 1034

def teammate_name
  @teammate_name
end