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.



1028
1029
1030
1031
1032
1033
# File 'lib/claude_agent_sdk/types.rb', line 1028

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.



1026
1027
1028
# File 'lib/claude_agent_sdk/types.rb', line 1026

def compact_summary
  @compact_summary
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



1026
1027
1028
# File 'lib/claude_agent_sdk/types.rb', line 1026

def hook_event_name
  @hook_event_name
end

#triggerObject

Returns the value of attribute trigger.



1026
1027
1028
# File 'lib/claude_agent_sdk/types.rb', line 1026

def trigger
  @trigger
end