Class: Braintrust::Models::ProjectScore
- Defined in:
- lib/braintrust/models/project_score.rb
Instance Attribute Summary collapse
-
#categories ⇒ Array<Braintrust::Models::ProjectScoreCategory>|Array<String>|Braintrust::Models::ProjectScore::Categories::UnnamedTypeWithunionParent7|Hash
For categorical-type project scores, the list of all categories.
- #config ⇒ Braintrust::Models::ProjectScoreConfig
-
#created ⇒ DateTime
Date of project score creation.
-
#description ⇒ String
Textual description of the project score.
-
#id ⇒ String
Unique identifier for the project score.
-
#name_ ⇒ String
Name of the project score.
-
#position ⇒ String
An optional LexoRank-based string that sets the sort position for the score in the UI.
-
#project_id ⇒ String
Unique identifier for the project that the project score belongs under.
-
#score_type ⇒ Symbol
The type of the configured score One of the constants defined in ProjectScoreType.
- #user_id ⇒ String
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
#categories ⇒ Array<Braintrust::Models::ProjectScoreCategory>|Array<String>|Braintrust::Models::ProjectScore::Categories::UnnamedTypeWithunionParent7|Hash
For categorical-type project scores, the list of all categories
34 |
# File 'lib/braintrust/models/project_score.rb', line 34 optional :categories, Braintrust::Unknown |
#config ⇒ Braintrust::Models::ProjectScoreConfig
38 |
# File 'lib/braintrust/models/project_score.rb', line 38 optional :config, -> { Braintrust::Models::ProjectScoreConfig } |
#created ⇒ DateTime
Date of project score creation
43 |
# File 'lib/braintrust/models/project_score.rb', line 43 optional :created, DateTime |
#description ⇒ String
Textual description of the project score
48 |
# File 'lib/braintrust/models/project_score.rb', line 48 optional :description, String |
#id ⇒ String
Unique identifier for the project score
9 |
# File 'lib/braintrust/models/project_score.rb', line 9 required :id, String |
#name_ ⇒ String
Name of the project score
14 |
# File 'lib/braintrust/models/project_score.rb', line 14 required :name_, String |
#position ⇒ String
An optional LexoRank-based string that sets the sort position for the score in the UI
53 |
# File 'lib/braintrust/models/project_score.rb', line 53 optional :position, String |
#project_id ⇒ String
Unique identifier for the project that the project score belongs under
19 |
# File 'lib/braintrust/models/project_score.rb', line 19 required :project_id, String |
#score_type ⇒ Symbol
The type of the configured score One of the constants defined in Braintrust::Models::ProjectScoreType
25 |
# File 'lib/braintrust/models/project_score.rb', line 25 required :score_type, enum: -> { Braintrust::Models::ProjectScoreType } |
#user_id ⇒ String
29 |
# File 'lib/braintrust/models/project_score.rb', line 29 required :user_id, String |