Class: ClaudeAgentSDK::APIRetryMessage

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

Overview

API retry 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, attempt: nil, max_retries: nil, retry_delay_ms: nil, error_status: nil, error: nil) ⇒ APIRetryMessage

Returns a new instance of APIRetryMessage.



247
248
249
250
251
252
253
254
255
256
257
# File 'lib/claude_agent_sdk/types.rb', line 247

def initialize(subtype:, data:, uuid: nil, session_id: nil, attempt: nil, max_retries: nil,
               retry_delay_ms: nil, error_status: nil, error: nil)
  super(subtype: subtype, data: data)
  @uuid = uuid
  @session_id = session_id
  @attempt = attempt
  @max_retries = max_retries
  @retry_delay_ms = retry_delay_ms
  @error_status = error_status
  @error = error
end

Instance Attribute Details

#attemptObject

Returns the value of attribute attempt.



245
246
247
# File 'lib/claude_agent_sdk/types.rb', line 245

def attempt
  @attempt
end

#errorObject

Returns the value of attribute error.



245
246
247
# File 'lib/claude_agent_sdk/types.rb', line 245

def error
  @error
end

#error_statusObject

Returns the value of attribute error_status.



245
246
247
# File 'lib/claude_agent_sdk/types.rb', line 245

def error_status
  @error_status
end

#max_retriesObject

Returns the value of attribute max_retries.



245
246
247
# File 'lib/claude_agent_sdk/types.rb', line 245

def max_retries
  @max_retries
end

#retry_delay_msObject

Returns the value of attribute retry_delay_ms.



245
246
247
# File 'lib/claude_agent_sdk/types.rb', line 245

def retry_delay_ms
  @retry_delay_ms
end

#session_idObject

Returns the value of attribute session_id.



245
246
247
# File 'lib/claude_agent_sdk/types.rb', line 245

def session_id
  @session_id
end

#uuidObject

Returns the value of attribute uuid.



245
246
247
# File 'lib/claude_agent_sdk/types.rb', line 245

def uuid
  @uuid
end