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.



1058
1059
1060
1061
1062
1063
# File 'lib/claude_agent_sdk/types.rb', line 1058

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.



1056
1057
1058
# File 'lib/claude_agent_sdk/types.rb', line 1056

def compact_summary
  @compact_summary
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



1056
1057
1058
# File 'lib/claude_agent_sdk/types.rb', line 1056

def hook_event_name
  @hook_event_name
end

#triggerObject

Returns the value of attribute trigger.



1056
1057
1058
# File 'lib/claude_agent_sdk/types.rb', line 1056

def trigger
  @trigger
end