Class: Braintrust::Models::ProjectScore

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/braintrust/models/project_score.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

#categoriesArray<Braintrust::Models::ProjectScoreCategory>|Array<String>|Braintrust::Models::ProjectScore::Categories::UnnamedTypeWithunionParent7|Hash

For categorical-type project scores, the list of all categories

Returns:



34
# File 'lib/braintrust/models/project_score.rb', line 34

optional :categories, Braintrust::Unknown

#configBraintrust::Models::ProjectScoreConfig



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

optional :config, -> { Braintrust::Models::ProjectScoreConfig }

#createdDateTime

Date of project score creation

Returns:

  • (DateTime)


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

optional :created, DateTime

#descriptionString

Textual description of the project score

Returns:

  • (String)


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

optional :description, String

#idString

Unique identifier for the project score

Returns:

  • (String)


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

required :id, String

#name_String

Name of the project score

Returns:

  • (String)


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

required :name_, String

#positionString

An optional LexoRank-based string that sets the sort position for the score in the UI

Returns:

  • (String)


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

optional :position, String

#project_idString

Unique identifier for the project that the project score belongs under

Returns:

  • (String)


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

required :project_id, String

#score_typeSymbol

The type of the configured score One of the constants defined in Braintrust::Models::ProjectScoreType

Returns:

  • (Symbol)


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

required :score_type, enum: -> { Braintrust::Models::ProjectScoreType }

#user_idString

Returns:

  • (String)


29
# File 'lib/braintrust/models/project_score.rb', line 29

required :user_id, String