Class: ClaudeAgentSDK::HookResponseMessage
- Inherits:
-
SystemMessage
- Object
- SystemMessage
- ClaudeAgentSDK::HookResponseMessage
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Hook response system message
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#hook_event ⇒ Object
Returns the value of attribute hook_event.
-
#hook_id ⇒ Object
Returns the value of attribute hook_id.
-
#hook_name ⇒ Object
Returns the value of attribute hook_name.
-
#outcome ⇒ Object
Returns the value of attribute outcome.
-
#output ⇒ Object
Returns the value of attribute output.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Attributes inherited from SystemMessage
Instance Method Summary collapse
-
#initialize(subtype:, data:, uuid: nil, session_id: nil, hook_id: nil, hook_name: nil, hook_event: nil, output: nil, stdout: nil, stderr: nil, exit_code: nil, outcome: nil) ⇒ HookResponseMessage
constructor
A new instance of HookResponseMessage.
Constructor Details
#initialize(subtype:, data:, uuid: nil, session_id: nil, hook_id: nil, hook_name: nil, hook_event: nil, output: nil, stdout: nil, stderr: nil, exit_code: nil, outcome: nil) ⇒ HookResponseMessage
Returns a new instance of HookResponseMessage.
330 331 332 333 334 335 336 337 338 339 340 341 342 343 |
# File 'lib/claude_agent_sdk/types.rb', line 330 def initialize(subtype:, data:, uuid: nil, session_id: nil, hook_id: nil, hook_name: nil, hook_event: nil, output: nil, stdout: nil, stderr: nil, exit_code: nil, outcome: nil) super(subtype: subtype, data: data) @uuid = uuid @session_id = session_id @hook_id = hook_id @hook_name = hook_name @hook_event = hook_event @output = output @stdout = stdout @stderr = stderr @exit_code = exit_code @outcome = outcome # "success", "error", or "cancelled" end |
Instance Attribute Details
#exit_code ⇒ Object
Returns the value of attribute exit_code.
327 328 329 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def exit_code @exit_code end |
#hook_event ⇒ Object
Returns the value of attribute hook_event.
327 328 329 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def hook_event @hook_event end |
#hook_id ⇒ Object
Returns the value of attribute hook_id.
327 328 329 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def hook_id @hook_id end |
#hook_name ⇒ Object
Returns the value of attribute hook_name.
327 328 329 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def hook_name @hook_name end |
#outcome ⇒ Object
Returns the value of attribute outcome.
327 328 329 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def outcome @outcome end |
#output ⇒ Object
Returns the value of attribute output.
327 328 329 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def output @output end |
#session_id ⇒ Object
Returns the value of attribute session_id.
327 328 329 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def session_id @session_id end |
#stderr ⇒ Object
Returns the value of attribute stderr.
327 328 329 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout.
327 328 329 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def stdout @stdout end |
#uuid ⇒ Object
Returns the value of attribute uuid.
327 328 329 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def uuid @uuid end |