Class: Braintrust::Models::InsertDatasetEventReplace

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

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

#_is_mergeObject

The _is_merge field controls how the row is merged with any existing row with the same id in the DB. By default (or when set to false), the existing row is completely replaced by the new row. When set to true, the new row is deep-merged into the existing row



16
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 16

optional :_is_merge, Braintrust::BooleanModel

#_object_deleteBoolean

Pass _object_delete=true to mark the dataset event deleted. Deleted events will not show up in subsequent fetches for this dataset

Returns:

  • (Boolean)


21
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 21

optional :_object_delete, Braintrust::BooleanModel

#_parent_idObject

Use the _parent_id field to create this row as a subspan of an existing row. It cannot be specified alongside _is_merge=true. Tracking hierarchical relationships are important for tracing (see the guide for full details).



28
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 28

optional :_parent_id, String

#createdDateTime

The timestamp the dataset event was created

Returns:

  • (DateTime)


33
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 33

optional :created, DateTime

#expectedObject

The output of your application, including post-processing (an arbitrary, JSON serializable object)

Returns:

  • (Object)


38
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 38

optional :expected, Braintrust::Unknown

#idString

A unique identifier for the dataset event. If you don't provide one, BrainTrust will generate one for you

Returns:

  • (String)


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

optional :id, String

#inputObject

The argument that uniquely define an input case (an arbitrary, JSON serializable object)

Returns:

  • (Object)


43
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 43

optional :input, Braintrust::Unknown

#metadataHash

A dictionary with additional data about the test example, model outputs, or just about anything else that's relevant, that you can use to help find and analyze examples later. For example, you could log the prompt, example's id, or anything else that would be useful to slice/dice later. The values in metadata can be any JSON-serializable type, but its keys must be strings

Returns:

  • (Hash)


48
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 48

optional :metadata, Hash

#tagsArray<String>

A list of tags to log

Returns:

  • (Array<String>)


53
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 53

optional :tags, Braintrust::ArrayOf.new(String)