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.
784 785 786 787 788 |
# File 'lib/claude_agent_sdk/types.rb', line 784 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.
782 783 784 |
# File 'lib/claude_agent_sdk/types.rb', line 782 def hook_event_name @hook_event_name end |
#prompt ⇒ Object
Returns the value of attribute prompt.
782 783 784 |
# File 'lib/claude_agent_sdk/types.rb', line 782 def prompt @prompt end |