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.
268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/claude_agent_sdk/types.rb', line 268 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.
266 267 268 |
# File 'lib/claude_agent_sdk/types.rb', line 266 def attempt @attempt end |
#error ⇒ Object
Returns the value of attribute error.
266 267 268 |
# File 'lib/claude_agent_sdk/types.rb', line 266 def error @error end |
#error_status ⇒ Object
Returns the value of attribute error_status.
266 267 268 |
# File 'lib/claude_agent_sdk/types.rb', line 266 def error_status @error_status end |
#max_retries ⇒ Object
Returns the value of attribute max_retries.
266 267 268 |
# File 'lib/claude_agent_sdk/types.rb', line 266 def max_retries @max_retries end |
#retry_delay_ms ⇒ Object
Returns the value of attribute retry_delay_ms.
266 267 268 |
# File 'lib/claude_agent_sdk/types.rb', line 266 def retry_delay_ms @retry_delay_ms end |
#session_id ⇒ Object
Returns the value of attribute session_id.
266 267 268 |
# File 'lib/claude_agent_sdk/types.rb', line 266 def session_id @session_id end |
#uuid ⇒ Object
Returns the value of attribute uuid.
266 267 268 |
# File 'lib/claude_agent_sdk/types.rb', line 266 def uuid @uuid end |