Class: Assistant::QueryClassifier::Result
- Inherits:
-
Data
- Object
- Data
- Assistant::QueryClassifier::Result
- Defined in:
- app/services/assistant/query_classifier.rb
Overview
Result returned by .classify. tools is always an Array (possibly empty).
model_tier is one of :flash | :pro | nil (nil means classifier abstained
and the caller should use its own fallback).
Instance Attribute Summary collapse
-
#model_tier ⇒ Object
readonly
Returns the value of attribute model_tier.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#tools ⇒ Object
readonly
Returns the value of attribute tools.
Instance Method Summary collapse
-
#initialize(tools: [], model_tier: nil, reason: nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(tools: [], model_tier: nil, reason: nil) ⇒ Result
Returns a new instance of Result.
29 |
# File 'app/services/assistant/query_classifier.rb', line 29 def initialize(tools: [], model_tier: nil, reason: nil) = super |
Instance Attribute Details
#model_tier ⇒ Object (readonly)
Returns the value of attribute model_tier
28 29 30 |
# File 'app/services/assistant/query_classifier.rb', line 28 def model_tier @model_tier end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
28 29 30 |
# File 'app/services/assistant/query_classifier.rb', line 28 def reason @reason end |
#tools ⇒ Object (readonly)
Returns the value of attribute tools
28 29 30 |
# File 'app/services/assistant/query_classifier.rb', line 28 def tools @tools end |