Class: Braintrust::Models::DatasetEvent
- Defined in:
- lib/braintrust/models/dataset_event.rb
Instance Attribute Summary collapse
-
#_xact_id ⇒ String
The transaction id of an event is unique to the network operation that processed the event insertion.
-
#created ⇒ DateTime
The timestamp the dataset event was created.
-
#dataset_id ⇒ String
Unique identifier for the dataset.
-
#expected ⇒ Object
The output of your application, including post-processing (an arbitrary, JSON serializable object).
-
#id ⇒ String
A unique identifier for the dataset event.
-
#input ⇒ Object
The argument that uniquely define an input case (an arbitrary, JSON serializable object).
-
#metadata ⇒ Hash
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.
-
#project_id ⇒ String
Unique identifier for the project that the dataset belongs under.
-
#root_span_id ⇒ String
The
span_id
of the root of the trace this dataset event belongs to. -
#span_id ⇒ String
A unique identifier used to link different dataset events together as part of a full trace.
-
#tags ⇒ Array<String>
A list of tags to log.
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
#_xact_id ⇒ String
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)
14 |
# File 'lib/braintrust/models/dataset_event.rb', line 14 required :_xact_id, String |
#created ⇒ DateTime
The timestamp the dataset event was created
19 |
# File 'lib/braintrust/models/dataset_event.rb', line 19 required :created, DateTime |
#dataset_id ⇒ String
Unique identifier for the dataset
24 |
# File 'lib/braintrust/models/dataset_event.rb', line 24 required :dataset_id, String |
#expected ⇒ Object
The output of your application, including post-processing (an arbitrary, JSON serializable object)
44 |
# File 'lib/braintrust/models/dataset_event.rb', line 44 optional :expected, Braintrust::Unknown |
#id ⇒ String
A unique identifier for the dataset event. If you don't provide one, BrainTrust will generate one for you
9 |
# File 'lib/braintrust/models/dataset_event.rb', line 9 required :id, String |
#input ⇒ Object
The argument that uniquely define an input case (an arbitrary, JSON serializable object)
49 |
# File 'lib/braintrust/models/dataset_event.rb', line 49 optional :input, Braintrust::Unknown |
#metadata ⇒ Hash
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
54 |
# File 'lib/braintrust/models/dataset_event.rb', line 54 optional :metadata, Hash |
#project_id ⇒ String
Unique identifier for the project that the dataset belongs under
29 |
# File 'lib/braintrust/models/dataset_event.rb', line 29 required :project_id, String |
#root_span_id ⇒ String
The span_id
of the root of the trace this dataset event belongs to
34 |
# File 'lib/braintrust/models/dataset_event.rb', line 34 required :root_span_id, String |
#span_id ⇒ String
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
39 |
# File 'lib/braintrust/models/dataset_event.rb', line 39 required :span_id, String |
#tags ⇒ Array<String>
A list of tags to log
59 |
# File 'lib/braintrust/models/dataset_event.rb', line 59 optional :tags, Braintrust::ArrayOf.new(String) |