Exception: Cloudflare::AIError
- Inherits:
-
StandardError
- Object
- StandardError
- Cloudflare::AIError
- Defined in:
- lib/homura/runtime/ai.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
Instance Method Summary collapse
-
#initialize(message, model: nil, operation: nil) ⇒ AIError
constructor
A new instance of AIError.
Constructor Details
#initialize(message, model: nil, operation: nil) ⇒ AIError
Returns a new instance of AIError.
29 30 31 32 33 |
# File 'lib/homura/runtime/ai.rb', line 29 def initialize(, model: nil, operation: nil) @model = model @operation = operation super("[Cloudflare::AI] model=#{model || '?'} op=#{operation || 'run'}: #{}") end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
28 29 30 |
# File 'lib/homura/runtime/ai.rb', line 28 def model @model end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
28 29 30 |
# File 'lib/homura/runtime/ai.rb', line 28 def operation @operation end |