Class: Braintrust::Models::DatasetFetchResponse::Event

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

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #inspect, #to_h, #to_s

Instance Attribute Details

#_xact_idString

The transaction id of an event is unique to the network operation that processed the event insertion. Transaction ids are monotonically increasing over time and can be used to retrieve a versioned snapshot of the dataset (see the version parameter)

Returns:

  • (String)


27
# File 'lib/braintrust/models/dataset_fetch_response.rb', line 27

required :_xact_id, String

#createdString

The timestamp the dataset event was created

Returns:

  • (String)


32
# File 'lib/braintrust/models/dataset_fetch_response.rb', line 32

required :created, String

#dataset_idString

Unique identifier for the dataset

Returns:

  • (String)


37
# File 'lib/braintrust/models/dataset_fetch_response.rb', line 37

required :dataset_id, String

#expectedObject

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

Returns:

  • (Object)


52
# File 'lib/braintrust/models/dataset_fetch_response.rb', line 52

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)


22
# File 'lib/braintrust/models/dataset_fetch_response.rb', line 22

required :id, String

#inputObject

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

Returns:

  • (Object)


57
# File 'lib/braintrust/models/dataset_fetch_response.rb', line 57

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)


62
# File 'lib/braintrust/models/dataset_fetch_response.rb', line 62

optional :metadata, Hash

#project_idString

Unique identifier for the project that the dataset belongs under

Returns:

  • (String)


67
# File 'lib/braintrust/models/dataset_fetch_response.rb', line 67

optional :project_id, String

#root_span_idString

The span_id of the root of the trace this dataset event belongs to

Returns:

  • (String)


42
# File 'lib/braintrust/models/dataset_fetch_response.rb', line 42

required :root_span_id, String

#span_idString

A unique identifier used to link different dataset events together as part of a full trace. See the tracing guide for full details on tracing

Returns:

  • (String)


47
# File 'lib/braintrust/models/dataset_fetch_response.rb', line 47

required :span_id, String

#tagsArray<String>

A list of tags to log

Returns:

  • (Array<String>)


72
# File 'lib/braintrust/models/dataset_fetch_response.rb', line 72

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