Class: ClaudeAgentSDK::APIRetryMessage
- Inherits:
-
SystemMessage
- Object
- SystemMessage
- ClaudeAgentSDK::APIRetryMessage
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
API retry system message
Instance Attribute Summary collapse
-
#attempt ⇒ Object
Returns the value of attribute attempt.
-
#error ⇒ Object
Returns the value of attribute error.
-
#error_status ⇒ Object
Returns the value of attribute error_status.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
-
#retry_delay_ms ⇒ Object
Returns the value of attribute retry_delay_ms.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Attributes inherited from SystemMessage
Instance Method Summary collapse
-
#initialize(subtype:, data:, uuid: nil, session_id: nil, attempt: nil, max_retries: nil, retry_delay_ms: nil, error_status: nil, error: nil) ⇒ APIRetryMessage
constructor
A new instance of APIRetryMessage.
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
#attempt ⇒ Object
Returns the value of attribute attempt.
245 246 247 |
# File 'lib/claude_agent_sdk/types.rb', line 245 def attempt @attempt end |
#error ⇒ Object
Returns the value of attribute error.
245 246 247 |
# File 'lib/claude_agent_sdk/types.rb', line 245 def error @error end |
#error_status ⇒ Object
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_retries ⇒ Object
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_ms ⇒ Object
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_id ⇒ Object
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 |
#uuid ⇒ Object
Returns the value of attribute uuid.
245 246 247 |
# File 'lib/claude_agent_sdk/types.rb', line 245 def uuid @uuid end |