Class: ClaudeAgentSDK::ElicitationResultHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::ElicitationResultHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
ElicitationResult hook input
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#content ⇒ Object
Returns the value of attribute content.
-
#elicitation_id ⇒ Object
Returns the value of attribute elicitation_id.
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#mcp_server_name ⇒ Object
Returns the value of attribute mcp_server_name.
-
#mode ⇒ Object
Returns the value of attribute mode.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'ElicitationResult', mcp_server_name: nil, elicitation_id: nil, mode: nil, action: nil, content: nil, **base_args) ⇒ ElicitationResultHookInput
constructor
A new instance of ElicitationResultHookInput.
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
#action ⇒ Object
Returns the value of attribute action.
1089 1090 1091 |
# File 'lib/claude_agent_sdk/types.rb', line 1089 def action @action end |
#content ⇒ Object
Returns the value of attribute content.
1089 1090 1091 |
# File 'lib/claude_agent_sdk/types.rb', line 1089 def content @content end |
#elicitation_id ⇒ Object
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_name ⇒ Object
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_name ⇒ Object
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 |
#mode ⇒ Object
Returns the value of attribute mode.
1089 1090 1091 |
# File 'lib/claude_agent_sdk/types.rb', line 1089 def mode @mode end |