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, #hook_event_name, #permission_mode, #session_id, #transcript_path

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, from_hash, #to_h, wrap

Constructor Details

#initialize(attributes = {}) ⇒ PreCompactHookInput

Returns a new instance of PreCompactHookInput.



673
674
675
676
# File 'lib/claude_agent_sdk/types.rb', line 673

def initialize(attributes = {})
  super
  @hook_event_name = 'PreCompact'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#custom_instructionsObject

Returns the value of attribute custom_instructions.



671
672
673
# File 'lib/claude_agent_sdk/types.rb', line 671

def custom_instructions
  @custom_instructions
end

#triggerObject

Returns the value of attribute trigger.



671
672
673
# File 'lib/claude_agent_sdk/types.rb', line 671

def trigger
  @trigger
end