Class: ClaudeAgentSDK::InstructionsLoadedHookInput

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

Overview

InstructionsLoaded 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: 'InstructionsLoaded', file_path: nil, memory_type: nil, load_reason: nil, globs: nil, trigger_file_path: nil, **base_args) ⇒ InstructionsLoadedHookInput

Returns a new instance of InstructionsLoadedHookInput.



1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
# File 'lib/claude_agent_sdk/types.rb', line 1086

def initialize(hook_event_name: 'InstructionsLoaded', file_path: nil, memory_type: nil,
               load_reason: nil, globs: nil, trigger_file_path: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @file_path = file_path
  @memory_type = memory_type
  @load_reason = load_reason
  @globs = globs
  @trigger_file_path = trigger_file_path
end

Instance Attribute Details

#file_pathObject

Returns the value of attribute file_path.



1084
1085
1086
# File 'lib/claude_agent_sdk/types.rb', line 1084

def file_path
  @file_path
end

#globsObject

Returns the value of attribute globs.



1084
1085
1086
# File 'lib/claude_agent_sdk/types.rb', line 1084

def globs
  @globs
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



1084
1085
1086
# File 'lib/claude_agent_sdk/types.rb', line 1084

def hook_event_name
  @hook_event_name
end

#load_reasonObject

Returns the value of attribute load_reason.



1084
1085
1086
# File 'lib/claude_agent_sdk/types.rb', line 1084

def load_reason
  @load_reason
end

#memory_typeObject

Returns the value of attribute memory_type.



1084
1085
1086
# File 'lib/claude_agent_sdk/types.rb', line 1084

def memory_type
  @memory_type
end

#trigger_file_pathObject

Returns the value of attribute trigger_file_path.



1084
1085
1086
# File 'lib/claude_agent_sdk/types.rb', line 1084

def trigger_file_path
  @trigger_file_path
end