Class: ClaudeAgentSDK::ElicitationHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::ElicitationHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Elicitation hook input
Instance Attribute Summary collapse
-
#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.
-
#message ⇒ Object
Returns the value of attribute message.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#requested_schema ⇒ Object
Returns the value of attribute requested_schema.
-
#url ⇒ Object
Returns the value of attribute url.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'Elicitation', mcp_server_name: nil, message: nil, mode: nil, url: nil, elicitation_id: nil, requested_schema: nil, **base_args) ⇒ ElicitationHookInput
constructor
A new instance of ElicitationHookInput.
Constructor Details
#initialize(hook_event_name: 'Elicitation', mcp_server_name: nil, message: nil, mode: nil, url: nil, elicitation_id: nil, requested_schema: nil, **base_args) ⇒ ElicitationHookInput
Returns a new instance of ElicitationHookInput.
1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 |
# File 'lib/claude_agent_sdk/types.rb', line 1074 def initialize(hook_event_name: 'Elicitation', mcp_server_name: nil, message: nil, mode: nil, url: nil, elicitation_id: nil, requested_schema: nil, **base_args) super(**base_args) @hook_event_name = hook_event_name @mcp_server_name = mcp_server_name @message = @mode = mode @url = url @elicitation_id = elicitation_id @requested_schema = requested_schema end |
Instance Attribute Details
#elicitation_id ⇒ Object
Returns the value of attribute elicitation_id.
1071 1072 1073 |
# File 'lib/claude_agent_sdk/types.rb', line 1071 def elicitation_id @elicitation_id end |
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
1071 1072 1073 |
# File 'lib/claude_agent_sdk/types.rb', line 1071 def hook_event_name @hook_event_name end |
#mcp_server_name ⇒ Object
Returns the value of attribute mcp_server_name.
1071 1072 1073 |
# File 'lib/claude_agent_sdk/types.rb', line 1071 def mcp_server_name @mcp_server_name end |
#message ⇒ Object
Returns the value of attribute message.
1071 1072 1073 |
# File 'lib/claude_agent_sdk/types.rb', line 1071 def @message end |
#mode ⇒ Object
Returns the value of attribute mode.
1071 1072 1073 |
# File 'lib/claude_agent_sdk/types.rb', line 1071 def mode @mode end |
#requested_schema ⇒ Object
Returns the value of attribute requested_schema.
1071 1072 1073 |
# File 'lib/claude_agent_sdk/types.rb', line 1071 def requested_schema @requested_schema end |
#url ⇒ Object
Returns the value of attribute url.
1071 1072 1073 |
# File 'lib/claude_agent_sdk/types.rb', line 1071 def url @url end |