Class: ClaudeAgentSDK::UserPromptSubmitHookInput

Inherits:
BaseHookInput show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

UserPromptSubmit 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: 'UserPromptSubmit', prompt: nil, **base_args) ⇒ UserPromptSubmitHookInput

Returns a new instance of UserPromptSubmitHookInput.



299
300
301
302
303
# File 'lib/claude_agent_sdk/types.rb', line 299

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_nameObject

Returns the value of attribute hook_event_name.



297
298
299
# File 'lib/claude_agent_sdk/types.rb', line 297

def hook_event_name
  @hook_event_name
end

#promptObject

Returns the value of attribute prompt.



297
298
299
# File 'lib/claude_agent_sdk/types.rb', line 297

def prompt
  @prompt
end