Class: ClaudeAgentSDK::ElicitationResultHookInput

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

Overview

ElicitationResult 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: 'ElicitationResult', mcp_server_name: nil, elicitation_id: nil, mode: nil, action: nil, content: nil, **base_args) ⇒ ElicitationResultHookInput

Returns a new instance of ElicitationResultHookInput.



1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
# File 'lib/claude_agent_sdk/types.rb', line 1070

def initialize(hook_event_name: 'ElicitationResult', mcp_server_name: nil, elicitation_id: nil,
               mode: nil, action: nil, content: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @mcp_server_name = mcp_server_name
  @elicitation_id = elicitation_id
  @mode = mode
  @action = action
  @content = content
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



1068
1069
1070
# File 'lib/claude_agent_sdk/types.rb', line 1068

def action
  @action
end

#contentObject

Returns the value of attribute content.



1068
1069
1070
# File 'lib/claude_agent_sdk/types.rb', line 1068

def content
  @content
end

#elicitation_idObject

Returns the value of attribute elicitation_id.



1068
1069
1070
# File 'lib/claude_agent_sdk/types.rb', line 1068

def elicitation_id
  @elicitation_id
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



1068
1069
1070
# File 'lib/claude_agent_sdk/types.rb', line 1068

def hook_event_name
  @hook_event_name
end

#mcp_server_nameObject

Returns the value of attribute mcp_server_name.



1068
1069
1070
# File 'lib/claude_agent_sdk/types.rb', line 1068

def mcp_server_name
  @mcp_server_name
end

#modeObject

Returns the value of attribute mode.



1068
1069
1070
# File 'lib/claude_agent_sdk/types.rb', line 1068

def mode
  @mode
end