Exception: Agentic::Errors::LlmRateLimitError
- Defined in:
- lib/agentic/errors/llm_error.rb
Overview
Error raised when the API returns a rate limit error
Instance Attribute Summary collapse
-
#retry_after ⇒ Integer?
readonly
The number of seconds to wait before retrying.
Attributes inherited from LlmError
Instance Method Summary collapse
-
#initialize(message, retry_after: nil, response: nil, context: nil) ⇒ LlmRateLimitError
constructor
A new instance of LlmRateLimitError.
-
#retryable? ⇒ Boolean
Whether this error is retryable.
Constructor Details
#initialize(message, retry_after: nil, response: nil, context: nil) ⇒ LlmRateLimitError
Returns a new instance of LlmRateLimitError.
114 115 116 117 |
# File 'lib/agentic/errors/llm_error.rb', line 114 def initialize(, retry_after: nil, response: nil, context: nil) super(, response: response, context: context) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Integer? (readonly)
Returns The number of seconds to wait before retrying.
108 109 110 |
# File 'lib/agentic/errors/llm_error.rb', line 108 def retry_after @retry_after end |
Instance Method Details
#retryable? ⇒ Boolean
Returns Whether this error is retryable.
120 121 122 |
# File 'lib/agentic/errors/llm_error.rb', line 120 def retryable? true end |