Class: ClaudeAgentSDK::PreCompactHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::PreCompactHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
PreCompact hook input
Instance Attribute Summary collapse
-
#custom_instructions ⇒ Object
Returns the value of attribute custom_instructions.
-
#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: 'PreCompact', trigger: nil, custom_instructions: nil, **base_args) ⇒ PreCompactHookInput
constructor
A new instance of PreCompactHookInput.
Constructor Details
#initialize(hook_event_name: 'PreCompact', trigger: nil, custom_instructions: nil, **base_args) ⇒ PreCompactHookInput
Returns a new instance of PreCompactHookInput.
884 885 886 887 888 889 |
# File 'lib/claude_agent_sdk/types.rb', line 884 def initialize(hook_event_name: 'PreCompact', trigger: nil, custom_instructions: nil, **base_args) super(**base_args) @hook_event_name = hook_event_name @trigger = trigger @custom_instructions = custom_instructions end |
Instance Attribute Details
#custom_instructions ⇒ Object
Returns the value of attribute custom_instructions.
882 883 884 |
# File 'lib/claude_agent_sdk/types.rb', line 882 def custom_instructions @custom_instructions end |
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
882 883 884 |
# File 'lib/claude_agent_sdk/types.rb', line 882 def hook_event_name @hook_event_name end |
#trigger ⇒ Object
Returns the value of attribute trigger.
882 883 884 |
# File 'lib/claude_agent_sdk/types.rb', line 882 def trigger @trigger end |