Class: Braintrust::Models::EnvVar

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

Defined Under Namespace

Classes: ObjectType

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

#createdDateTime

Date of environment variable creation

Returns:

  • (DateTime)


30
# File 'lib/braintrust/models/env_var.rb', line 30

optional :created, DateTime

#idString

Unique identifier for the environment variable

Returns:

  • (String)


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

required :id, String

#name_String

The name of the environment variable

Returns:

  • (String)


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

required :name_, String

#object_id_String

The id of the object the environment variable is scoped for

Returns:

  • (String)


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

required :object_id_, String

#object_typeSymbol

The type of the object the environment variable is scoped for One of the constants defined in ObjectType

Returns:

  • (Symbol)


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

required :object_type, enum: -> { Braintrust::Models::EnvVar::ObjectType }

#usedDateTime

Date the environment variable was last used

Returns:

  • (DateTime)


35
# File 'lib/braintrust/models/env_var.rb', line 35

optional :used, DateTime