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.



1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
# File 'lib/claude_agent_sdk/types.rb', line 1137

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.



1135
1136
1137
# File 'lib/claude_agent_sdk/types.rb', line 1135

def file_path
  @file_path
end

#globsObject

Returns the value of attribute globs.



1135
1136
1137
# File 'lib/claude_agent_sdk/types.rb', line 1135

def globs
  @globs
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



1135
1136
1137
# File 'lib/claude_agent_sdk/types.rb', line 1135

def hook_event_name
  @hook_event_name
end

#load_reasonObject

Returns the value of attribute load_reason.



1135
1136
1137
# File 'lib/claude_agent_sdk/types.rb', line 1135

def load_reason
  @load_reason
end

#memory_typeObject

Returns the value of attribute memory_type.



1135
1136
1137
# File 'lib/claude_agent_sdk/types.rb', line 1135

def memory_type
  @memory_type
end

#trigger_file_pathObject

Returns the value of attribute trigger_file_path.



1135
1136
1137
# File 'lib/claude_agent_sdk/types.rb', line 1135

def trigger_file_path
  @trigger_file_path
end