Class: Braintrust::Models::FeedbackDatasetItem

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/braintrust/models/feedback_dataset_item.rb

Defined Under Namespace

Classes: Source

Instance Attribute Summary collapse

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

#commentString

An optional comment string to log about the dataset event

Returns:

  • (String)


14
# File 'lib/braintrust/models/feedback_dataset_item.rb', line 14

optional :comment, String

#idString

The id of the dataset event to log feedback for. This is the row id returned by POST /v1/dataset/{dataset_id}/insert

Returns:

  • (String)


9
# File 'lib/braintrust/models/feedback_dataset_item.rb', line 9

required :id, String

#metadataHash

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.

Returns:

  • (Hash)


19
# File 'lib/braintrust/models/feedback_dataset_item.rb', line 19

optional :metadata, Hash

#sourceSymbol

The source of the feedback. Must be one of "external" (default), "app", or "api" One of the constants defined in Source

Returns:

  • (Symbol)


25
# File 'lib/braintrust/models/feedback_dataset_item.rb', line 25

optional :source, enum: -> { Braintrust::Models::FeedbackDatasetItem::Source }