Class: Legion::Extensions::Llm::Inventory::OfferingDraft
- Inherits:
-
Data
- Object
- Data
- Legion::Extensions::Llm::Inventory::OfferingDraft
- Defined in:
- lib/legion/extensions/llm/inventory/records.rb
Overview
An off-registry provider draft of one offering. Carries no provider family, instance ID, offering ID, lane ID, callable, health, weight, or default model. See section 10.1.
Instance Attribute Summary collapse
-
#capability_evidence ⇒ Object
readonly
Returns the value of attribute capability_evidence.
-
#context_evidence ⇒ Object
readonly
Returns the value of attribute context_evidence.
-
#embedding_dimensions_evidence ⇒ Object
readonly
Returns the value of attribute embedding_dimensions_evidence.
-
#max_output_evidence ⇒ Object
readonly
Returns the value of attribute max_output_evidence.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#model_revision_evidence ⇒ Object
readonly
Returns the value of attribute model_revision_evidence.
-
#operation_evidence ⇒ Object
readonly
Returns the value of attribute operation_evidence.
-
#provider_native_key ⇒ Object
readonly
Returns the value of attribute provider_native_key.
-
#publication_source ⇒ Object
readonly
Returns the value of attribute publication_source.
-
#quota_domains ⇒ Object
readonly
Returns the value of attribute quota_domains.
-
#tier ⇒ Object
readonly
Returns the value of attribute tier.
-
#tokenizer_evidence ⇒ Object
readonly
Returns the value of attribute tokenizer_evidence.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ OfferingDraft
constructor
A new instance of OfferingDraft.
Constructor Details
#initialize(**kwargs) ⇒ OfferingDraft
Returns a new instance of OfferingDraft.
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 255 def initialize(**kwargs) kwargs = { capability_evidence: {}, quota_domains: {}, metadata: {} }.merge(kwargs) RecordSupport.check_unknown_kwargs!(kwargs: kwargs, members: self.class.members) super( provider_native_key: Identity.normalize_text(value: kwargs[:provider_native_key], field: :provider_native_key), model: Identity.normalize_text(value: kwargs[:model], field: :model), tier: Identity.normalize_enum(value: kwargs[:tier], field: :tier, allowed: Taxonomies::TIERS), operation_evidence: RecordSupport.validate_operation_evidence!(kwargs[:operation_evidence]), capability_evidence: RecordSupport.validate_capability_evidence!(kwargs[:capability_evidence]), quota_domains: RecordSupport.validate_quota_domains!(kwargs[:quota_domains]), metadata: RecordSupport.(value: kwargs[:metadata]), publication_source: RecordSupport.publication_source!(value: kwargs[:publication_source]), **RecordSupport.scalar_value_evidences(kwargs) ) end |
Instance Attribute Details
#capability_evidence ⇒ Object (readonly)
Returns the value of attribute capability_evidence
250 251 252 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 250 def capability_evidence @capability_evidence end |
#context_evidence ⇒ Object (readonly)
Returns the value of attribute context_evidence
250 251 252 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 250 def context_evidence @context_evidence end |
#embedding_dimensions_evidence ⇒ Object (readonly)
Returns the value of attribute embedding_dimensions_evidence
250 251 252 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 250 def @embedding_dimensions_evidence end |
#max_output_evidence ⇒ Object (readonly)
Returns the value of attribute max_output_evidence
250 251 252 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 250 def max_output_evidence @max_output_evidence end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
250 251 252 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 250 def @metadata end |
#model ⇒ Object (readonly)
Returns the value of attribute model
250 251 252 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 250 def model @model end |
#model_revision_evidence ⇒ Object (readonly)
Returns the value of attribute model_revision_evidence
250 251 252 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 250 def model_revision_evidence @model_revision_evidence end |
#operation_evidence ⇒ Object (readonly)
Returns the value of attribute operation_evidence
250 251 252 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 250 def operation_evidence @operation_evidence end |
#provider_native_key ⇒ Object (readonly)
Returns the value of attribute provider_native_key
250 251 252 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 250 def provider_native_key @provider_native_key end |
#publication_source ⇒ Object (readonly)
Returns the value of attribute publication_source
250 251 252 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 250 def publication_source @publication_source end |
#quota_domains ⇒ Object (readonly)
Returns the value of attribute quota_domains
250 251 252 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 250 def quota_domains @quota_domains end |
#tier ⇒ Object (readonly)
Returns the value of attribute tier
250 251 252 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 250 def tier @tier end |
#tokenizer_evidence ⇒ Object (readonly)
Returns the value of attribute tokenizer_evidence
250 251 252 |
# File 'lib/legion/extensions/llm/inventory/records.rb', line 250 def tokenizer_evidence @tokenizer_evidence end |