Class: ClaudeAgentSDK::PostCompactHookInput

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

Overview

PostCompact 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: 'PostCompact', trigger: nil, compact_summary: nil, **base_args) ⇒ PostCompactHookInput

Returns a new instance of PostCompactHookInput.



1007
1008
1009
1010
1011
1012
# File 'lib/claude_agent_sdk/types.rb', line 1007

def initialize(hook_event_name: 'PostCompact', trigger: nil, compact_summary: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @trigger = trigger # "manual" or "auto"
  @compact_summary = compact_summary
end

Instance Attribute Details

#compact_summaryObject

Returns the value of attribute compact_summary.



1005
1006
1007
# File 'lib/claude_agent_sdk/types.rb', line 1005

def compact_summary
  @compact_summary
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



1005
1006
1007
# File 'lib/claude_agent_sdk/types.rb', line 1005

def hook_event_name
  @hook_event_name
end

#triggerObject

Returns the value of attribute trigger.



1005
1006
1007
# File 'lib/claude_agent_sdk/types.rb', line 1005

def trigger
  @trigger
end