Class: Braintrust::Models::Function::Origin

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

#internalBoolean

The function exists for internal purposes and should not be displayed in the list of functions.

Returns:

  • (Boolean)


122
# File 'lib/braintrust/models/function.rb', line 122

optional :internal, Braintrust::BooleanModel

#object_id_String

Id of the object the function is originating from

Returns:

  • (String)


111
# File 'lib/braintrust/models/function.rb', line 111

required :object_id_, String

#object_typeSymbol

The object type that the ACL applies to One of the constants defined in ObjectType

Returns:

  • (Symbol)


117
# File 'lib/braintrust/models/function.rb', line 117

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