Module: Braintrust::Classifier::Callable::ClassificationNormalizer
- Defined in:
- lib/braintrust/classifier.rb
Overview
Normalizes the raw return value of #call into Array<Hash>. Nested inside Callable because it depends on #name which Callable provides.
Instance Method Summary collapse
-
#call(**kwargs) ⇒ Array<Hash>
Normalized classification hashes with :name, :id, and optional :label, :metadata keys.
Instance Method Details
#call(**kwargs) ⇒ Array<Hash>
Returns normalized classification hashes with :name, :id, and optional :label, :metadata keys.
54 55 56 |
# File 'lib/braintrust/classifier.rb', line 54 def call(**kwargs) normalize_classification_result(super) end |