Class: ClaudeAgentSDK::PreCompactHookInput

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

Overview

PreCompact 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: 'PreCompact', trigger: nil, custom_instructions: nil, **base_args) ⇒ PreCompactHookInput

Returns a new instance of PreCompactHookInput.



391
392
393
394
395
396
# File 'lib/claude_agent_sdk/types.rb', line 391

def initialize(hook_event_name: 'PreCompact', trigger: nil, custom_instructions: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @trigger = trigger
  @custom_instructions = custom_instructions
end

Instance Attribute Details

#custom_instructionsObject

Returns the value of attribute custom_instructions.



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

def custom_instructions
  @custom_instructions
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



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

def hook_event_name
  @hook_event_name
end

#triggerObject

Returns the value of attribute trigger.



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

def trigger
  @trigger
end