Class: ActiveHarness::ModelInfo
- Inherits:
-
Struct
- Object
- Struct
- ActiveHarness::ModelInfo
- Defined in:
- lib/active_harness/result.rb
Overview
Static model metadata resolved at call time.
Instance Attribute Summary collapse
-
#context_window ⇒ Object
Returns the value of attribute context_window.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pricing ⇒ Object
Returns the value of attribute pricing.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#temperature ⇒ Object
Returns the value of attribute temperature.
Instance Method Summary collapse
Instance Attribute Details
#context_window ⇒ Object
Returns the value of attribute context_window
11 12 13 |
# File 'lib/active_harness/result.rb', line 11 def context_window @context_window end |
#name ⇒ Object
Returns the value of attribute name
11 12 13 |
# File 'lib/active_harness/result.rb', line 11 def name @name end |
#pricing ⇒ Object
Returns the value of attribute pricing
11 12 13 |
# File 'lib/active_harness/result.rb', line 11 def pricing @pricing end |
#provider ⇒ Object
Returns the value of attribute provider
11 12 13 |
# File 'lib/active_harness/result.rb', line 11 def provider @provider end |
#temperature ⇒ Object
Returns the value of attribute temperature
11 12 13 |
# File 'lib/active_harness/result.rb', line 11 def temperature @temperature end |
Instance Method Details
#inspect ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/active_harness/result.rb', line 20 def inspect parts = ["name=#{name.inspect}", "provider=#{provider.inspect}"] parts << "temperature=#{temperature}" if temperature parts << "context_window=#{context_window}" if context_window parts << "pricing=#{pricing.inspect}" if pricing "#<ModelInfo #{parts.join(' ')}>" end |
#to_s ⇒ Object
19 |
# File 'lib/active_harness/result.rb', line 19 def to_s; name.to_s; end |