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.



1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
# File 'lib/claude_agent_sdk/types.rb', line 1091

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.



1089
1090
1091
# File 'lib/claude_agent_sdk/types.rb', line 1089

def action
  @action
end

#contentObject

Returns the value of attribute content.



1089
1090
1091
# File 'lib/claude_agent_sdk/types.rb', line 1089

def content
  @content
end

#elicitation_idObject

Returns the value of attribute elicitation_id.



1089
1090
1091
# File 'lib/claude_agent_sdk/types.rb', line 1089

def elicitation_id
  @elicitation_id
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



1089
1090
1091
# File 'lib/claude_agent_sdk/types.rb', line 1089

def hook_event_name
  @hook_event_name
end

#mcp_server_nameObject

Returns the value of attribute mcp_server_name.



1089
1090
1091
# File 'lib/claude_agent_sdk/types.rb', line 1089

def mcp_server_name
  @mcp_server_name
end

#modeObject

Returns the value of attribute mode.



1089
1090
1091
# File 'lib/claude_agent_sdk/types.rb', line 1089

def mode
  @mode
end