Class: Legion::Extensions::Llm::Inventory::ReadinessResult
- Inherits:
-
Data
- Object
- Data
- Legion::Extensions::Llm::Inventory::ReadinessResult
- Defined in:
- lib/legion/extensions/llm/inventory/records.rb
Overview
The result of a provider-specific safe readiness operation. Contains no model output, prompt, tokens, callable, exception, or transition instruction. See section 10.5.
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#ready ⇒ Object
readonly
Returns the value of attribute ready.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(ready:, reason:, metadata: {}) ⇒ ReadinessResult
constructor
A new instance of ReadinessResult.
- #ready? ⇒ Boolean
Constructor Details
#initialize(ready:, reason:, metadata: {}) ⇒ ReadinessResult
Returns a new instance of ReadinessResult.
443 444 445 446 447 448 449 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 443 def initialize(ready:, reason:, metadata: {}) super( ready: RecordSupport.boolean!(value: ready, field: :ready), reason: RecordSupport.sanitized_reason(value: reason, field: :reason), metadata: RecordSupport.(value: ) ) end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
442 443 444 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 442 def @metadata end |
#ready ⇒ Object (readonly)
Returns the value of attribute ready
442 443 444 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 442 def ready @ready end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
442 443 444 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 442 def reason @reason end |
Instance Method Details
#ready? ⇒ Boolean
451 452 453 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 451 def ready? ready end |