Class: ClaudeAgentSDK::ElicitationResultHookInput

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

Overview

ElicitationResult hook input

Instance Attribute Summary collapse

Attributes inherited from BaseHookInput

#cwd, #hook_event_name, #permission_mode, #session_id, #transcript_path

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, from_hash, #to_h, wrap

Constructor Details

#initialize(attributes = {}) ⇒ ElicitationResultHookInput

Returns a new instance of ElicitationResultHookInput.



814
815
816
817
# File 'lib/claude_agent_sdk/types.rb', line 814

def initialize(attributes = {})
  super
  @hook_event_name = 'ElicitationResult'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#actionObject

Returns the value of attribute action.



812
813
814
# File 'lib/claude_agent_sdk/types.rb', line 812

def action
  @action
end

#contentObject

Returns the value of attribute content.



812
813
814
# File 'lib/claude_agent_sdk/types.rb', line 812

def content
  @content
end

#elicitation_idObject

Returns the value of attribute elicitation_id.



812
813
814
# File 'lib/claude_agent_sdk/types.rb', line 812

def elicitation_id
  @elicitation_id
end

#mcp_server_nameObject

Returns the value of attribute mcp_server_name.



812
813
814
# File 'lib/claude_agent_sdk/types.rb', line 812

def mcp_server_name
  @mcp_server_name
end

#modeObject

Returns the value of attribute mode.



812
813
814
# File 'lib/claude_agent_sdk/types.rb', line 812

def mode
  @mode
end