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.



308
309
310
311
312
# File 'lib/claude_agent_sdk/types.rb', line 308

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.



306
307
308
# File 'lib/claude_agent_sdk/types.rb', line 306

def hook_event_name
  @hook_event_name
end

#promptObject

Returns the value of attribute prompt.



306
307
308
# File 'lib/claude_agent_sdk/types.rb', line 306

def prompt
  @prompt
end