Class: Braintrust::Models::FeedbackDatasetItem
- Defined in:
- lib/braintrust/models/feedback_dataset_item.rb
Defined Under Namespace
Classes: Source
Instance Attribute Summary collapse
-
#comment ⇒ String
An optional comment string to log about the dataset event.
-
#id ⇒ String
The id of the dataset event to log feedback for.
-
#metadata ⇒ Hash
A dictionary with additional data about the feedback.
-
#source ⇒ Symbol
The source of the feedback.
Method Summary
Methods inherited from BaseModel
#[], #initialize, #inspect, #to_h, #to_s
Constructor Details
This class inherits a constructor from Braintrust::BaseModel
Instance Attribute Details
#comment ⇒ String
An optional comment string to log about the dataset event
14 |
# File 'lib/braintrust/models/feedback_dataset_item.rb', line 14 optional :comment, String |
#id ⇒ String
The id of the dataset event to log feedback for. This is the row id
returned by POST /v1/dataset/{dataset_id}/insert
9 |
# File 'lib/braintrust/models/feedback_dataset_item.rb', line 9 required :id, String |
#metadata ⇒ Hash
A dictionary with additional data about the feedback. If you have a user_id
, you can log it here and access it in the Braintrust UI.
19 |
# File 'lib/braintrust/models/feedback_dataset_item.rb', line 19 optional :metadata, Hash |
#source ⇒ Symbol
The source of the feedback. Must be one of "external" (default), "app", or "api" One of the constants defined in Source
25 |
# File 'lib/braintrust/models/feedback_dataset_item.rb', line 25 optional :source, enum: -> { Braintrust::Models::FeedbackDatasetItem::Source } |