Class: ClaudeAgentSDK::TaskCompletedHookInput

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

Overview

TaskCompleted 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: 'TaskCompleted', task_id: nil, task_subject: nil, task_description: nil, teammate_name: nil, team_name: nil, **base_args) ⇒ TaskCompletedHookInput

Returns a new instance of TaskCompletedHookInput.



943
944
945
946
947
948
949
950
951
952
# File 'lib/claude_agent_sdk/types.rb', line 943

def initialize(hook_event_name: 'TaskCompleted', 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.



941
942
943
# File 'lib/claude_agent_sdk/types.rb', line 941

def hook_event_name
  @hook_event_name
end

#task_descriptionObject

Returns the value of attribute task_description.



941
942
943
# File 'lib/claude_agent_sdk/types.rb', line 941

def task_description
  @task_description
end

#task_idObject

Returns the value of attribute task_id.



941
942
943
# File 'lib/claude_agent_sdk/types.rb', line 941

def task_id
  @task_id
end

#task_subjectObject

Returns the value of attribute task_subject.



941
942
943
# File 'lib/claude_agent_sdk/types.rb', line 941

def task_subject
  @task_subject
end

#team_nameObject

Returns the value of attribute team_name.



941
942
943
# File 'lib/claude_agent_sdk/types.rb', line 941

def team_name
  @team_name
end

#teammate_nameObject

Returns the value of attribute teammate_name.



941
942
943
# File 'lib/claude_agent_sdk/types.rb', line 941

def teammate_name
  @teammate_name
end