Class: ClaudeAgentSDK::PostCompactHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::PostCompactHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
PostCompact hook input
Instance Attribute Summary collapse
-
#compact_summary ⇒ Object
Returns the value of attribute compact_summary.
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#trigger ⇒ Object
Returns the value of attribute trigger.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'PostCompact', trigger: nil, compact_summary: nil, **base_args) ⇒ PostCompactHookInput
constructor
A new instance of PostCompactHookInput.
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_summary ⇒ Object
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_name ⇒ Object
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 |
#trigger ⇒ Object
Returns the value of attribute trigger.
1005 1006 1007 |
# File 'lib/claude_agent_sdk/types.rb', line 1005 def trigger @trigger end |