Class: ClaudeAgentSDK::UserPromptSubmitHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::UserPromptSubmitHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
UserPromptSubmit hook input
Instance Attribute Summary collapse
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#prompt ⇒ Object
Returns the value of attribute prompt.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'UserPromptSubmit', prompt: nil, **base_args) ⇒ UserPromptSubmitHookInput
constructor
A new instance of UserPromptSubmitHookInput.
Constructor Details
#initialize(hook_event_name: 'UserPromptSubmit', prompt: nil, **base_args) ⇒ UserPromptSubmitHookInput
Returns a new instance of UserPromptSubmitHookInput.
342 343 344 345 346 |
# File 'lib/claude_agent_sdk/types.rb', line 342 def initialize(hook_event_name: 'UserPromptSubmit', prompt: nil, **base_args) super(**base_args) @hook_event_name = hook_event_name @prompt = prompt end |
Instance Attribute Details
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
340 341 342 |
# File 'lib/claude_agent_sdk/types.rb', line 340 def hook_event_name @hook_event_name end |
#prompt ⇒ Object
Returns the value of attribute prompt.
340 341 342 |
# File 'lib/claude_agent_sdk/types.rb', line 340 def prompt @prompt end |