Class: Braintrust::Models::FeedbackProjectLogsItem
- Defined in:
- lib/braintrust/models/feedback_project_logs_item.rb
Defined Under Namespace
Classes: Source
Instance Attribute Summary collapse
-
#comment ⇒ String
An optional comment string to log about the project logs event.
-
#expected ⇒ Object
The ground truth value (an arbitrary, JSON serializable object) that you'd compare to
output
to determine if youroutput
value is correct or not. -
#id ⇒ String
The id of the project logs event to log feedback for.
-
#metadata ⇒ Hash
A dictionary with additional data about the feedback.
-
#scores ⇒ Hash
A dictionary of numeric values (between 0 and 1) to log.
-
#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 project logs event
14 |
# File 'lib/braintrust/models/feedback_project_logs_item.rb', line 14 optional :comment, String |
#expected ⇒ Object
The ground truth value (an arbitrary, JSON serializable object) that you'd compare to output
to determine if your output
value is correct or not
19 |
# File 'lib/braintrust/models/feedback_project_logs_item.rb', line 19 optional :expected, Braintrust::Unknown |
#id ⇒ String
The id of the project logs event to log feedback for. This is the row id
returned by POST /v1/project_logs/{project_id}/insert
9 |
# File 'lib/braintrust/models/feedback_project_logs_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.
24 |
# File 'lib/braintrust/models/feedback_project_logs_item.rb', line 24 optional :metadata, Hash |
#scores ⇒ Hash
A dictionary of numeric values (between 0 and 1) to log. These scores will be merged into the existing scores for the project logs event
29 |
# File 'lib/braintrust/models/feedback_project_logs_item.rb', line 29 optional :scores, Hash |
#source ⇒ Symbol
The source of the feedback. Must be one of "external" (default), "app", or "api" One of the constants defined in Source
35 |
# File 'lib/braintrust/models/feedback_project_logs_item.rb', line 35 optional :source, enum: -> { Braintrust::Models::FeedbackProjectLogsItem::Source } |