Class: ClaudeAgentSDK::HookStartedMessage

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

Overview

Hook started system message

Instance Attribute Summary collapse

Attributes inherited from SystemMessage

#data, #subtype

Instance Method Summary collapse

Constructor Details

#initialize(subtype:, data:, uuid: nil, session_id: nil, hook_id: nil, hook_name: nil, hook_event: nil) ⇒ HookStartedMessage

Returns a new instance of HookStartedMessage.



276
277
278
279
280
281
282
283
# File 'lib/claude_agent_sdk/types.rb', line 276

def initialize(subtype:, data:, uuid: nil, session_id: nil, hook_id: nil, hook_name: nil, hook_event: nil)
  super(subtype: subtype, data: data)
  @uuid = uuid
  @session_id = session_id
  @hook_id = hook_id
  @hook_name = hook_name
  @hook_event = hook_event
end

Instance Attribute Details

#hook_eventObject

Returns the value of attribute hook_event.



274
275
276
# File 'lib/claude_agent_sdk/types.rb', line 274

def hook_event
  @hook_event
end

#hook_idObject

Returns the value of attribute hook_id.



274
275
276
# File 'lib/claude_agent_sdk/types.rb', line 274

def hook_id
  @hook_id
end

#hook_nameObject

Returns the value of attribute hook_name.



274
275
276
# File 'lib/claude_agent_sdk/types.rb', line 274

def hook_name
  @hook_name
end

#session_idObject

Returns the value of attribute session_id.



274
275
276
# File 'lib/claude_agent_sdk/types.rb', line 274

def session_id
  @session_id
end

#uuidObject

Returns the value of attribute uuid.



274
275
276
# File 'lib/claude_agent_sdk/types.rb', line 274

def uuid
  @uuid
end